Archived topic
adding newsticker under header widget issues
6 replies · Started by Larrian on September 22, 2021
I am trying to add a newsticker widget under or over the header like byrdie.com but I cant seem to either place it correctly or get the ticker to show. I am using Dispatch theme. IS there a way to add it on the home page only? Site is kimblebeauty.com
Thanks for any help.
Hi there,
We would need to use a hook as there is no widget area there.
Does the plugin offer the option to add it as a shortcode?
yes it offers a shortcode and a php code. Where would I install it? I tried adding the shortcode widget in the header under the icons but it runs just the width of that section. Is there a way to make it run all the way across?
You can use a block hook element with a shortcode block:
https://docs.generatepress.com/article/block-element-overview/
Then the after_header hook should work:
https://docs.generatepress.com/article/hooks-visual-guide/
Let me know if this helps :)
Could you look at kimblebeauty.com? I am seeing the shortcode coding showing up in the section by the icons.
I used a hook....after-header-content..display front page.... but its not showing across the bottom of the header and its not running..just shows the short code in brackets. Not sure what I have done wrong. I then chose after navigation and that puts it in the right space but off the the left and the ticker is not running..only the code show.
Thanks so much for your help.
I got it working! Forgot to mark execute shortcode....now it works.
Thanks so much!
No problem :)