How I can put the plugin below?
Thanks!
]]>Hello,
I use a sticky navbar in my web with this code:
jQuery(document).ready(function($){var $filter=$('.nav-primary');var $filterSpacer=$('<div />',{"class":"filter-drop-spacer","height":$filter.outerHeight()});if($filter.size())
{$(window).scroll(function()
{if(!$filter.hasClass('fix')&&$(window).scrollTop()>$filter.offset().top&&window.innerWidth>500)
{$filter.before($filterSpacer);$filter.addClass("fix");}
else if($filter.hasClass('fix')&&$(window).scrollTop()<$filterSpacer.offset().top)
{$filter.removeClass("fix");$filterSpacer.remove();}});}});
After installing your plugin, my sticky navbar no more works…
Thanks in advance,
Joan L. Soler
]]>Hi,
I’ve noticed that the code is not being inserted where it should be (“Code to insert in head/foot when the user has/has not accepted cookies (Analytics code)”).
All those pieces of code are being inserted just before the closing body tag of the page, within script tags with the type set to “text/template” (<script type=”text/template”></script>) and with a specific id, so I guess you have implemented client-side templating functionality.
How do I have to implement that templating functionality on my site? I know I should be using the given id’s to call those pieces of code from the right places but, could you please tell me the exact syntax?
Thank you
]]>