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

Okay
  Public Ticket #2284117
Can I activate the sidebar in all already published posts with one setting.
Closed

Comments

  • zizooboats started the conversation

    I have round about 500 articles live, but they currently have no sidebar. I would love to activate the sidebar in all of them. Can I do so somewhere central without updating all 500 current articles? 

  •  7,280
    Oliver replied

    Hi,

    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