- This topic has 3 replies, 3 voices, and was last updated 3 years, 8 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Tagged: top banner
Does anyone know how I can make the Authority Pro 'Top Banner' sticky? I found a plugin that can do it (called Sticky Menu (or Anything!) on Scroll) but I have a feeling that this can be done with CSS and I'd rather avoid installing another plugin if I can.
Also, my understanding is that, when dismissed, a cookie is created that hides the banner for 7 days. How can I modify this so that the banner appears on every session (or maybe just edit the cookie duration to 1 second)?
Thank you in advance.
Reading through the forum a bit more, I found a response from Victor Font ( @vfontjr ) here and I found out that I can change the duration of the cookie from the top-banner.js file. I'll probably just set that to 1 day and that should work fine.
I'm still looking for a way to make the banner sticky so if anyone has done it before and would like to share it, it'd be amazing.
The easiest way is using a plugin. I’m using “MyStickyMenu” plugin which gives you more control, but there are other options available. Just make sure you use .top-banner (with the dot) when you configure the plugin.
Per Victor Font:
Place the following in your Appearance > Customize > Additional CSS
© 2024 WPEngine, Inc.