When using Slider Revolution on a page, CSS from themeoptions stops working
This support request was posted in Smart by burppy_p
- burppy_p February 19, 2018 at 4:12 pm
Hi there,
I’m running into a serious problem, need fix urgently.
I’m using Slider Revolution on a page, and this page will not load any css from custom css (themeoptions)
I haven’t found a solution, please provide one as soon as possible.
Jolyn
Juanfra Aldasoro February 19, 2018 at 5:35 pmHi Jolyn,
Thank you for writing.
Would you please share your site access details in a private reply so I can take a look?
Best,
Juan.burppy_p February 19, 2018 at 5:42 pmby the way…
these are all the other problems I found so far…
1. gallery auto rotate no work and shows black line under image sometimes
2. builder – image – On click action – “Zoom” doesn’t work
“Open prettyphoto” doesn’t work.
3. no icon options, icon box doesn’t have “align” option…
4. gallery grid has white space sometimes even when “no space” was setup.burppy_p February 19, 2018 at 5:48 pmsorry I forgot to mention that the problem of css not loading can be seen very clearly on tablet and mobile.
Andrés Villarreal February 19, 2018 at 9:14 pmHi Jolyn,
I just checked your custom CSS, and it seems there’s a validation problem with it.
Please look for the following string:
@media (min-width: 768px) and (max-width: 1200px) {
There you’re opening a new media query without having closed the previous one, which you can find a few lines above:
@media (max-width: 1023px) {
That’s why some of your selectors may not be working as expected on some pages and for some different viewport sizes. You can use CSS Lint to check for errors and warnings in your custom CSS: http://csslint.net/
Can you try to fix that media query and tell us if the issue still persists?
Regarding the Icon Box component, it has an option called “Module position”, which allows to align the icon. Do you need to accomplish something different to what that option provides?
We’re still taking a look at the other issues you mentioned, so I’m going to get back to you as soon as I have an answer.
Best,
Andrés.
Andrés Villarreal February 20, 2018 at 12:41 amI can confirm the issue with prettyPhoto is caused by a bug in the theme. We’re going to release a fix for it on the next version, but in the meantime I took the liberty to add this code to your Custom JavaScript option, which should solve the problem by now:
Please let me know if this works fine on your side.
Regarding the problem you’re reporting with the “zoom” value for the Image component, that feature only works for images with original sizes that are larger than the available space to show them in the viewport. For example, if you include an image inside a 400px block, the zoom functionality is only going to work if that image is originally larger than 400px. Perhaps if you could point us to a specific image where the problem shows up, then we can take a further look at it.
We’re still looking at the issues you’re having with the galleries, so expect to hear from us soon.
Best,
Andrés.
burppy_p February 20, 2018 at 3:24 pmHi Andrés,
I fixed the css and the problem is still there.
please check my homepage on tablet and mobile, the menu is giant, and there’s a white space at the top.
And when you click on the burger menu, the dropdown list background is black, and not the purple I added. You can see what it should look like on other pages.
I think it’s Slider Revolution that doing that, because I tested it.“Regarding the Icon Box component, it has an option called “Module position”, which allows to align the icon. Do you need to accomplish something different to what that option provides?”
– I don’t mean where the icon is positioned in reference to the heading, but where the whole thing is aligned in the column, you don’t have an option for that.Right now, I just want the homepage to work, and I need to go live with the website by FRIDAY, so this is urgent, please help.
Thank you.Jolyn
burppy_p February 20, 2018 at 3:32 pmBy the way, I’m not receiving any emails notifying me of your replies. Is this normal? How do I fix this? Thanks!
Andrés Villarreal February 20, 2018 at 11:27 pmHi Jolyn,
Thanks for the follow-up. After further testing, I can confirm the CSS issue was caused by a bug in the theme. The fix is going to be included in the next version, but in the meantime I added the following code to the functions.php file in your Child Theme:
I also added this to your custom CSS:
This should solve the issue regarding custom CSS caused when using Slider Revolution, and also the gap you where seeing in smaller viewports above the header.
One of the other issues you mentioned was FlexSlider not switching slides automatically for gallery images. This has been addressed for the next version too, but I updated your custom JavaScript to provide a temporary fix.
You can remove all these fixes safely once our next version is released and you update the theme.
About your issue with gallery grids having a blank space even when the “no gap” value is selected, I haven’t been able to reproduce it yet. Could you point me to a specific page where you’re experiencing this problem?
Finally, I am not sure I understand exactly what you mean when you say “where the whole thing is aligned in the column, you don’t have an option for that” about the Icon Box component. Can you provide an example of what you’re trying to accomplish, so we can take a further look at that?
About the email notifications, have you checked your spam folder? Emails should arrive normally to your inbox, but I’m gonna take a look at that too.
Best,
Andrés.
burppy_p February 21, 2018 at 7:57 amHi Andrés,
Thank you very much for your quick help!
“About your issue with gallery grids having a blank space even when the “no gap” value is selected, I haven’t been able to reproduce it yet. Could you point me to a specific page where you’re experiencing this problem?”
– http://lw2018.la-freelancer.com/portfolio/unesco-heritage-castle-in-bellinzona/
please scroll down on this page and you’ll see the grid gallery, bottom of the first or second or third row has a 1px white gap (it keeps changing row every time I refresh the page)
http://lw2018.la-freelancer.com/portfolio/hotel-splendide-royal/ this page also has gallery, and has the white line.
***it’s only on desktop and above***“Finally, I am not sure I understand exactly what you mean when you say “where the whole thing is aligned in the column, you don’t have an option for that” about the Icon Box component. Can you provide an example of what you’re trying to accomplish, so we can take a further look at that?”
– http://lw2018.la-freelancer.com/services/ at the bottom of the page, i made an example.
this is a full width column, I added an icon box inside it, since there is no option to align it, this is the result. and I understand that I can choose whether to have the icon on top, left or right, but I can’t align the “icon box” center, left or right. I’m just saying… there should be an option for that.“About the email notifications, have you checked your spam folder? Emails should arrive normally to your inbox, but I’m gonna take a look at that too.”
– nothing in spam folder… I don’t think emails are being sent at all.* /portfolio/unesco-heritage-castle-in-bellinzona/
I’m using the “Project Gallery” on this portfolio, and I customized this section a bit, adding the title and subtitle to it, hiding the title bar etc… to have this effect, which is pretty common on other themes I have ever used, but your theme doesn’t have it, so I had to make it myself.
Since this is also a gallery, I was expecting it to auto rotate as well, but it’s not.
I would like it to do that, please advise how to make that happen, and how to adjust the speed, thank you.Thank you!!
Jolyn
burppy_p February 21, 2018 at 9:13 amPS: http://lw2018.la-freelancer.com/ticino/ this page will almost never load on mobile… it takes forever… I don’t think that this page is particularly big, but for some reason it keeps happening.
I don’t think that my server is the issue here, because I used it to build over 10 different websites, using different themes, and I never ran into a problem like this, like the page just won’t load…Andrés Villarreal February 21, 2018 at 10:23 pmHi Jolyn,
Thanks for the follow-up. I checked your issue with image galleries, and for some reason there are images that are not being correctly aligned inside its container. I added this to your custom CSS to prevent it from happening:
The alignment for the contents of the Icon Box component can be controlled from the settings of the column that contains it by adding a special class name. The theme includes some helper classes called “text-left”, “text-center” and “text-right” for alignment purposes.
Please check this image for reference: https://www.dropbox.com/s/ur5s78emedo69y5/Screenshot%202018-02-21%2017.41.08.png?dl=0
You can also set the size and horizontal alignment of the column inside a row in case you need to use only one column (see the “Aspect” tab inside Column Settings).
The project gallery can be modified to have an auto-rotated gallery by overriding the template that generates its HTML code. For your specific case, you need to create a new file called gallery.php and put it inside the following location in your Child Theme: includes/plugin-integrations/nice-portfolio/templates/single-project (you may need to create that folder structure). Or just copy that file from the parent theme to the new location in your Child Theme.
Once you created the file, you need the following code inside of it:
The important part here is line 21, where we’re setting the slideshow value to “true” and its speed to 3000 miliseconds. You can change that last value to match the speed you’re looking for. The rest of the file is the same as the original template.
I also checked the page you reported as not being loaded on mobile devices most of the time, and didn’t find any issue, though the site in general is a little heavy on images (you may want to use some compression tool like WP Smush for that). If you could tell me what kind of device and browser you are using to load it, I can take a further look at it.
In the meantime, I’d recommend that you check if you’re seeing any kind of JavaScript warning or error in the browser’s console when loading that page (I’m not). If you are on the mobile version of Chrome, you may want to check Google’s article about remote debugging: https://developers.google.com/web/tools/chrome-devtools/remote-debugging/
A possible culprit for the behavior you describe is the full page loader, which may not disappear after the page is loaded when a JavaScript warning or error is triggered. So trying a different loader may help debug the issue.
Finally, I noticed that you updated the functions.php file of your Child Theme recently, and that caused the PHP code I added yesterday to be deleted, so the conflicts between Slider Revolution and your custom CSS are visible again. I’d recommend that you make sure to include that code again the next time you update the file.
Best,
Andrés.
burppy_p February 22, 2018 at 6:47 amHi Andrés,
Thank you very much for all your help, 6 stars support! 🙂
I have everything I need for now.
PS: If I may, I’d like to make a suggestion. Since you already have access to many different icons (fontawesome, entypo, line icons etc…) on the theme, I would suggest NOT using fontawesome, simply put, they’re ugly. You have a very nice theme, using fontawesome is degrading the overall design.
I had to change the post/portfolio navigation arrows to another one, one that your theme would actually “accept”, and the options were very limited unfortunately… and even though I was able to change them, they don’t work on “mobile” for some reason… so I have different arrows on mobile and everything else…Thanks again!
Have a nice day
Jolynburppy_p February 22, 2018 at 7:18 amAnother suggestion, for future updates, if I may… to make everybody’s live easier:
having this would be MUCH appreciated https://www.dropbox.com/s/7k2k9xi87ci9f7r/coder%20screenshot.jpg?dl=0Cheers!
You must be logged in to reply to this topic.