Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

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,092
    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,092
    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,092
    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