Hello Summer Sale!
Exclusive season-opening discount on TheGem theme.
Limited time offer.

Okay
  Public Ticket #1486736
How to activate a sidebar on single post pages?​
Closed

Comments

  • Ain99 started the conversation

    How to activate a sidebar on single post pages? 

    Thank you.

  •  7,280
    Oliver replied

    Hi,

    Pls. take a look:

    codex-themes.com/thegem/documentation/#sidebars-and-widgets

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • Ain99 replied

    Hi. Does that mean I have to make each post separately? If I have more than 500 ... I can't do this. You can help? Thanks for everything.

  •  7,280
    Oliver replied

    In the

    /wp-content/themes/thegem/content-page.php 

     after line  27 add next code.

    if(get_post_type() == 'post') {
       $thegem_page_data['sidebar']['sidebar_position'] = 'right';
    }

    it's template, just copy it to the child theme.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • Ain99 replied

    Thank you! It works!

  •  7,280
    Oliver replied

    Welcome!

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver