New Landing How can we help? Themeforest Theme Support Pinpoint Setting the default sidebar

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Pinpoint
  • #8896
    irishmark
    Member
    Post count: 19

    I am using a child theme.

    I have set up several sidebars for different uses.
    Currently the default action is to set the sidebar to “no sidebar”.

    The site I am working on has an archive of posts written over the last 2 years all of which now have no sidebar.

    I want to achieve two things:
    #1 I want to change all the previous posts to use “Sidebar 1”
    #2 I want to set the default sidebar to be “Sidebar 1” so that all future posts will use that sidebar as standard with the option of changing it in the post meta box.

    I originally asked this question here but the solution is no longer working for me:
    http://themeforest.net/item/pinpoint-responsive-multipurpose-wp-theme/discussion/3760530?page=29&filter=All%20Discussion#comment_3868596

    Examples can be seen here:
    http://www.spiritradio.ie/surrendering-the-secret/
    http://www.spiritradio.ie/rejoice-weve-won/

    Samples where I have manually selected the sidebar:
    http://www.spiritradio.ie/builing-429-still-number-1/
    http://www.spiritradio.ie/google-community/

    #9176
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi Mark,

    To set the default selection when you create a new post, you want to edit /includes/meta-boxes.php line 344:

    'std'  => 'no-sidebars',
    

    Then in single.php, above line 22 add:

    if ($sidebar_config == "") {
    $sidebar_config = "right-sidebar";
    }
    

    – Ed

    #11714
    irishmark
    Member
    Post count: 19

    do I add this to my child theme or to my main theme?

    #11734
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    This is within the main theme.

    – Ed

    #12616
    irishmark
    Member
    Post count: 19

    Hey Ed,

    I’ve edited the following /includes/meta-boxes.php line 344 to:

    ‘std’ => ‘Sidebar-1’,

    I have also added the lines above to the appropriate section of the single.php page.

    Is there anything else I need to do to this to make it activate?
    When I first did this it played ball but now suddenly it just wont do anything.
    Each time I hit “new Post” in the dashboard I still get “no sidebars” by default.

    Ideas?

    #12618
    irishmark
    Member
    Post count: 19

    COuld it possibly be related to the fact that I’m using a child theme?

    Currently child theme only consists of a different header.php & style.css file

    #13024
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    The value should relate to one of the options from above, not a sidebar setting. So ‘right-sidebar for example.

    – Ed

    #26932
    irishmark
    Member
    Post count: 19

    Thanks for this Ed – It only took me 4 months to get there!

    #27397
    Melanie – SUPPORT
    Member
    Post count: 11032

    Great! 🙂

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register