Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1417747

    mollyb2121
    Participant

    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

    #1417872

    Joao
    Moderator

    Hi There,

    Would you mind to clarify what you mean by incline js and css?

    Thanks

    #1417993

    mollyb2121
    Participant

    Google tests and many other seo tests say to “eliminate above the fold css and javascript”

    #1418516

    Rue Nel
    Moderator

    Hello 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.

    #1423319

    mollyb2121
    Participant

    how can I make the privacy policy at the very bottom below the normal footer menu?

    theglassslipperllc.com

    #1423990

    Thai
    Moderator

    Hi There,

    Please try adding the following CSS:

    li#menu-item-1130 {
        display: block;
        margin-top: 15px;
    }

    Hope it helps 🙂

    #1424173

    mollyb2121
    Participant

    that didn’t work

    #1424187

    mollyb2121
    Participant

    The 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

    #1424192

    mollyb2121
    Participant

    and also the menu now doesn’t follow on the home page…..

    #1424333

    Joao
    Moderator

    Hi 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 credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks!

    #1425317

    mollyb2121
    Participant
    This reply has been marked as private.
    #1425849

    Rue Nel
    Moderator

    Hello 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.

    #1426347

    mollyb2121
    Participant

    I 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

    #1426758

    Rue Nel
    Moderator

    Hello There,

    I reactivated the Speed Booster Pack plugin.
    Please check your homepage now.