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 #1137289
Post Sidebars
Closed

Comments

  • nathanmoyer started the conversation

    hey codex! great theme!

    i recently went to launch the new version for my site with The Gem as my theme, and found that the default setting for posts is to have no sidebar.

    instead of going through 500+ posts to set a righthand sidebar, lefthand header, and a specific color header bg... is there a way to set this in the theme options globally that i am not seeing? if not, is there a database find/replace i can do?

    thanks!

  •  7,121
    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

  • nathanmoyer replied

    thanks! it works. i didn't expect it to be written in to the template. 

    is it possible to have the Page Title for all posts to be left aligned and the background color set to #022b47? 

  • nathanmoyer replied

    never mind! i got it via css: 

    .single-post .page-title-title {text-align: left;}

    .single-post .breadcrumbs-container .container {text-align: left;}

    .single-post .page-title-block {background-color: #022b47;}