• Resolved parkerjoe

    (@parkerjoe)


    Trying to add a sidebar to my page template. Using a graph paper press theme that doesn’t have a sidebar by default. I have been stealing php files from another GPP theme that DOES have one and trying to make it work. I can get it in there but it shows up at the bottom of the page probably cause my DIV tags are not setup to make space for it? I’m a resourceful dude but lost on this one. Help?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Start by validating the page. Chances are that you have mis-nested or missing <div></div> tags.

    Thread Starter parkerjoe

    (@parkerjoe)

    I haven’t added any div tags yet–don’t quite know where or how to use them for this.

    What I have done:

    1. Registered the sidebar in the index file so it shows up in my back-end “Widgets” tab.
    2. Replaced my page-blog.php file with a page-blog.php file from another template that has a sidebar.
    3. Copied a sidebar.php file from the same template into my template folder.

    Trying to find out where the code is or where it should go that tells wordpress how to format the sidebar? I.e. style, placement, size. The sidebar.php file doesn’t include any specific details on this. I am guessing it has to do with div class or div id code that it calls up in the .php that isn’t in my style.css or index.css templates?

    Thread Starter parkerjoe

    (@parkerjoe)

    Thanks esmi for the reply BTW, I am a producer really just trying to get my damn site up so I can get back to the music!

    My site is: https://www.membersonlyproductions.com

    Thread Starter parkerjoe

    (@parkerjoe)

    Logged in, changed the div class at the top of the page-blog.php to “grid_2” instead of “content” and the sidebar shot up to the right side since it had enough space.

    Question: Was this the right way to do it or is there simply a way for me to change the width of the “content” class from 795 to around 500 to make room for the sidebar?

    Can you have a blog be 700+ px wide and still have a sidebar?

    Can you have a blog be 700+ px wide and still have a sidebar?

    Yes – although it depends on the theme. What you can’t do (and expect to get reasonable results) is to copy template files from another theme into yours. The new templates have to be based upon your theme.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adding a sidebar to a theme that doesn't have one?’ is closed to new replies.