Skip to:
Content
Pages
Categories
Search
Top
Bottom

Yet another sidebar issue

Viewing 6 replies - 1 through 6 (of 6 total)

  • Robin W
    Moderator

    @robin-w

    ok, can you paste the page.php file here please AND make sure you enclose it all as code !


    dgalfano
    Participant

    @dgalfano

    Sure! Thanks for looking!

    https://gist.github.com/anonymous/34d96600379e037b60ae

    (mod note: when people search the forums, they hate scrolling through giant pieces of code. Small snippets use code tags, large files use external services to host the code.)


    Robkk
    Moderator

    @robkk

    Your theme looks to be using post meta to display the sidebars, so there might be custom fields to configure which sidebar to display which will most likely be on the default WordPress post types (page and post) when you create/edit them. These options may not be on the bbPress post type creation/editing screens in the WordPress backend.

    I see there is a ton of code that might not even be usable because bbPress post types may not have these custom field options to configure things like the slider, background color, and other options I can see in the code.

    I do see from the classes that this uses a responsive grid layout so maybe focus and keep this class as it is a two column layout, one for the content and one for the sidebar.

    two_columns_66_33 grid2 clearfix

    You may need to contact your theme author for further help on this.


    Robin W
    Moderator

    @robin-w

    ok, sorry been tied up elsewhere, and only just got back to looking at this.

    I think I can get it working and would suggest you do the following

    1. take a copy of page.php and save it into your theme as bbpress.php

    so you end up with

    wp-content/themes/%mytheme%/bbpress.php where %mytheme% is your currently active theme’s name.

    Now edit that file as follows

    The theme seems to be looking for a value of the sidebar for the post meta of the page ID. Since I suspect that bbpress is not having that at that point, it can’t look it up.

    Now the page.php (which is now bbpress.php!) tries to set this in line 4 using

    $sidebar = get_post_meta($id, "qode_show-sidebar", true);

    and then the page.php (which is now bbpress.php!) later on looks for what value between 1 and 4 that is set to, which would determine what if any sidebars are shown.

    therefore in bbpress.php try changing line 4 from

    $sidebar = 1

    save the file and see what happens

    then try
    $sidebar = 2
    $sidebar = 3
    $sidebar = 4

    each should change what sidebar appears and where, so you should be able to get one working !

    Do come back if anything isn’t clear, or if you need further help, or just to tell us that we’re wonderful (or rubbish!)


    dgalfano
    Participant

    @dgalfano

    Robin! Nice work! That was it!


    Robin W
    Moderator

    @robin-w

    Great – glad you’re fixed !

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar