Archived topic
Header sidebar position
6 replies · Started by Dejan on March 5, 2017
Hello guys,
is there any way I could set that header sidebar (ticker widget) in that space below like shown in the picture? And I would like it under specific category, not on every one.
I appreciate your suggestions.

Hi there,
Are you looking to add that in a specific category page or specific category post? or both?
Let me know and I should be able to help you out :)
Hello Leo,
I would say that's category page. So when a visitor clicks on that specific category, it would show that stock ticker and then content and other sidebars below just like in the photoshoped picture. But just on that category so when a visitor decides to read any of the posts, it wouldn't flash there too. I'm keeping content only in single posts layout. :D
For the ticker I'm using Custom Stock Ticker plugin and the width can be set if that helps.

In Dashboard > Appearance > GP Hooks > After Header Content, try this:
<?php if ( is_category( 'Category Name') ) : ?>
Stock Ticker Shortcode here
<?php endif; ?>
Then check the “Execute PHP” checkbox.
Let me know if this works.
If the widget doesn't come with a shortcode you can use a plugin like this: https://en-ca.wordpress.org/plugins/widget-shortcode/
Hey Leo and Tom,
it worked but in the ''After header'' not ''After header content''.
I didn't even know hooks existed, that opens billions of page possibilities.
Thank you both, appreciate it!
You're very welcome :)
More info on GP Hooks here:
https://docs.generatepress.com/article/hooks-overview/
http://demo.generatepress.com/hook-locations/