Tagged: x
-
AuthorPosts
-
March 22, 2017 at 5:43 am #1416060
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
March 22, 2017 at 9:21 pm #1417112Hi 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!
March 24, 2017 at 9:49 am #1419070Hi 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.
March 24, 2017 at 8:10 pm #1419742Hi 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!
March 30, 2017 at 6:26 am #1425217YEAH !!!!, thanks Rad, that got it 🙂
March 30, 2017 at 8:47 am #1425295You’re welcome! 🙂
-
AuthorPosts