Home › Forums › Support › is it possible to use the header widget only on first page? This topic has 12 replies, 2 voices, and was last updated 4 years ago by Leo. Viewing 13 posts - 1 through 13 (of 13 total) Author Posts May 30, 2019 at 10:21 am #915564 Dalia Hello, question in the topic. I tried to use hooks, but with no luck. Greetings, Dalia May 30, 2019 at 10:23 am #915566 LeoStaff Customer Support Hi there, You can use this CSS to hide on every page except home page: body:not(.home) .header-widget { display: none; } Adding CSS: https://docs.generatepress.com/article/adding-css/ Let me know π May 30, 2019 at 10:29 am #915579 Dalia oh that was very fast. Thank you Leo. But now I’ve see, that the links I’ve added there, are behind the logo? I can not click on them. May 30, 2019 at 10:33 am #915590 LeoStaff Customer Support This CSS you’ve added is causing the issue: .header-widget { margin-bottom: -200px; float: left; padding: 10px; } May 30, 2019 at 10:38 am #915596 Dalia Yes, but at this position I want the widget π May 30, 2019 at 10:49 am #915597 Dalia ok, if it’s not possible I have two other options. 1. is it possible to put the top bar at the first page at top of the header instead the top of the site? 2. Switch the header menu to horizontal May 30, 2019 at 11:04 am #915600 LeoStaff Customer Support Do you mind doing this first? https://www.screencast.com/t/sAZU8h7bUcE May 30, 2019 at 11:05 am #915601 Dalia done May 30, 2019 at 11:20 am #915606 LeoStaff Customer Support so you want the top bar to be between the slider and main navigation on home page? Which hook are you using to add the slider currently? May 30, 2019 at 11:26 am #915614 Dalia I use the Hock before_header with the php for the slider. May 30, 2019 at 11:36 am #915628 LeoStaff Customer Support So you are using Hooks Element to insert the slider in before_header hook correct? If setting the priority to 1 should make it appear before the top bar. May 30, 2019 at 11:53 am #915643 Dalia Looks good. Thank you π But if someday the option with the header widget is possible that would be even better. May 30, 2019 at 11:56 am #915645 LeoStaff Customer Support Awesome π Author Posts Viewing 13 posts - 1 through 13 (of 13 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In