[Resolved] Header sidebar position

Home Forums Support [Resolved] Header sidebar position

Home Forums Support Header sidebar position

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #287521
    Dejan

    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.

    header sidebar position

    #287534
    Leo
    Staff
    Customer Support

    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 🙂

    #287549
    Dejan

    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. 😀

    For the ticker I’m using Custom Stock Ticker plugin and the width can be set if that helps.

    photoshop

    #287551
    Leo
    Staff
    Customer Support

    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.

    #287585
    Tom
    Lead Developer
    Lead Developer

    If the widget doesn’t come with a shortcode you can use a plugin like this: https://en-ca.wordpress.org/plugins/widget-shortcode/

    #287650
    Dejan

    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!

    #287709
    Leo
    Staff
    Customer Support
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Header sidebar position’ is closed to new replies.