Tagged: x
-
AuthorPosts
-
March 23, 2017 at 10:02 am #1417747
Hello,
I know that this is a common asked question in the forum, but how can I incline javascript and css? I have looked at other forums and attempted many things and nothing is working. Is there a plugin you know of that can fix this or something to enter into my child theme php?
theglassslipperllc.com
March 23, 2017 at 11:27 am #1417872Hi There,
Would you mind to clarify what you mean by incline js and css?
Thanks
March 23, 2017 at 12:44 pm #1417993Google tests and many other seo tests say to “eliminate above the fold css and javascript”
March 23, 2017 at 9:00 pm #1418516Hello There,
Thank you for the clarifications. I have checked your site and I noticed that there is a JS error. Please have the JS code in your customizer updated and make use of this code instead:
jQuery(document).ready(function($){ $(window).scroll(function(){ if ($(this).scrollTop() > 1350) { $('.x-navbar .desktop .x-nav > li > a').css("blue", "#9bd0fa"); } else { $('.x-navbar .desktop .x-nav > li > a').css("white", "#ffffff"); } }); });
Eliminating JS and CSS above the fold may not be possible if those CSS and JS are necessary to your page. You may have it minified or optimized. Please check this out: https://community.theme.co/kb/performance/
Hope this helps.
March 28, 2017 at 1:53 pm #1423319how can I make the privacy policy at the very bottom below the normal footer menu?
theglassslipperllc.com
March 29, 2017 at 5:16 am #1423990Hi There,
Please try adding the following CSS:
li#menu-item-1130 { display: block; margin-top: 15px; }
Hope it helps 🙂
March 29, 2017 at 9:11 am #1424173that didn’t work
March 29, 2017 at 9:19 am #1424187The code did not work for the map and this code provided earlier in this form for an error in my javascript provided by Rue messed up my home page! Now it is cut off
jQuery(document).ready(function($){
$(window).scroll(function(){
if ($(this).scrollTop() > 1350) {
$(‘.x-navbar .desktop .x-nav > li > a’).css(“blue”, “#9bd0fa”);
} else {
$(‘.x-navbar .desktop .x-nav > li > a’).css(“white”, “#ffffff”);
}
});
});theglassslipperllc.com
March 29, 2017 at 9:28 am #1424192and also the menu now doesn’t follow on the home page…..
March 29, 2017 at 11:46 am #1424333Hi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks!
March 30, 2017 at 9:08 am #1425317This reply has been marked as private.March 30, 2017 at 8:13 pm #1425849Hello There,
Thanks for updating in! The code should have work. But then you have forgot to clear your plugin cache before testing your site. I went ahead and added the suggested codes and there I noticed that the customizer is not saving any changes made. I have investigated and it turns out that you have a caching overkill. having W3 Total Cache and WP Super Cache at the same time is not a good idea. You only need to have one caching plugin. So I disabled WP Super cache and made the changes. I also noticed that when Speed Booster Pack is active, the navbar has some issues. It will not be fixed on top of the page and there are JS errors on the page. When you deactivate Speed Booster Pack plugin, everything is fine.
Please do check your site.
March 31, 2017 at 9:08 am #1426347I am not sure what you mean by “the menu will not be fixed on the top of the page”, I wanted the menu to scroll down on the home page. Also I see that you deactivated both wp total cache and super cache. So I deleted super cache, should I reactivate wp total cache and or keep it deactivated?
Thanks for investigating for me!
theglassslipperllc.com
March 31, 2017 at 8:01 pm #1426758Hello There,
I reactivated the Speed Booster Pack plugin.
Please check your homepage now. -
AuthorPosts