• mariajcrgomes

    (@mariajcrgomes)


    Hi,

    I want to put the sidebar in only one page of my site, and keep the full width in all the rest. Is there a way to do it?

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • bonufe

    (@bonufe)

    I want same thing, i Know how to disable but not redistribute the witdh

    Thanks

    This isn’t that simple of a process. It would require modifying page templates and rewriting the primary attribute function that sets up the number of columns for the main content. If you do plan on messing around with the PHP I would suggest first creating a child theme.

    https://bavotasan.com/2011/creating-a-child-theme-in-wordpress/

    and fix the sidebar in all sites??

    thks

    Thread Starter mariajcrgomes

    (@mariajcrgomes)

    I figure it out how to put a sidebar in only one page, but I still have to change the width of that only page where the sidebar is.

    Because the side bar is on the bottom of the page, because it’s full width. I still have to mess around with the php to make only one page with 2 ccolumns one for the content and another for the sidebar.

    do you have any suggestions and tips how to do that? I’m not an expert in changing the php files, althought I’m learning.

    Thank you

    Thread Starter mariajcrgomes

    (@mariajcrgomes)

    So I finally found the solution for this problem. What I did was, entered in apperance/costumize and changed the layout to site width 992px and main content width 75%.

    Then, I open each one of the pages edit I wanted to remain with full width and insert in the text area this:

    <style type=”text/css”>
    #primary {
    width:100%;
    }
    </style>

    I could do it in the other way, but since the pages I want the sidebar are categories it wasnt possible to insert that code.

    It worked like I wanted, finally. I just have now a little problem that is the gallery I have in one of the pages still acts like the main content width is still 75% and now 100%.

    If anyone have a suggestion how to resolve this tiny problem please tell me. In the mean while I will try to fine a solution.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sidebar in only one page’ is closed to new replies.