Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1416060

    markw1
    Participant

    OK, I know the error is occuring when I add the code Nabeel A supplied above.

    (function(){
        jQuery.fn.addClass = function(){
            jQuery(this).trigger('smile-slideInDown');
        }
    })();
    
    jQuery(document).ready(function($){
        $(".cp-pos-top.cp-info-bar-shadow").bind('smile-slideInDown', function(){ 
            if( $('.cp-pos-top.cp-info-bar-shadow').hasClass("smile-slideInDown") ) {
    			$('body').css('margin-top', '53px');
    		}
    		else {
    			$('body').css('margin-top', '0');
    		}
        });
    });

    As when I remove this from the Global Javascript everything is fine, I have removed this to allow me to continue to work on the content on the site.

    I have unchecked the load google maps from uber menu.

    I am working on the content for the next 10 mins.

    After that can you please take a look, while no one else in on the site.
    I will keep clear for 2 hours. (till 13.00 uk time)

    Many thanks

    #1417112

    Rad
    Moderator

    Hi there,

    How about just removing this,

    (function(){
        jQuery.fn.addClass = function(){
            jQuery(this).trigger('smile-slideInDown');
        }
    })();

    It overrides the addClass function which normally used by other javascript.

    Thanks!

    #1419070

    markw1
    Participant

    Hi Rad,

    thanks, tried that but not working, I have added to the Customizer javascript, so you can see / edit it.

    The Convertplug infobar is still covering the nav bar.

    #1419742

    Rad
    Moderator

    Hi there,

    Please replace all that code with this.

    jQuery( function($) {
    
    var cp = setInterval ( function() {
    
    $('.x-navbar').css({marginTop : 0});
    $('.x-navbar-fixed-top').css({ marginTop : $('.cp-info-bar:visible').height() });
    
    } , 500 );
    
    } );

    Then add this CSS to your custom CSS section

    .x-navbar-fixed-top, .x-navbar-fixed-left, .x-navbar-fixed-right {
        position: fixed !important;
        z-index: 1030;
    }

    Thanks!

    #1425217

    markw1
    Participant

    YEAH !!!!, thanks Rad, that got it 🙂

    #1425295

    Paul R
    Moderator

    You’re welcome! 🙂