Welcome

Welcome to the Forums, Blogs, Wikis discussion boards. If you're new here please take a moment to register for an account. If you're already a member here, welcome back. Please login to join in.

Forums, Blogs, Wikis » Coding

Making room for bbpress

  1. estrahon
    Member

    I'm just curious how you were able to make room in your template for your bbpress forum. I see that in your blog you made room for a third column to fit an ad and then when you click on Forum that column goes away. I'm having trouble trying to get rid of the sidebar padding on my site so that I can add a forum to the body. My site is santafepoa.org. I figured that I could make a custom template based off of page.php and then edit the css. In the custom template I have gotten rid of the sidebar but I can't do the same with the padding so that the forum will stretch the whole width. Check out my gallery to see what happens. I'd appreciate it if you could help me out.

    Posted 1 year ago #
  2. estrahon
    Member

    I found a solution to my problem. I'll post how I fixed it here just in case anyone else will need to know. What I did was create a second header file called customheader.php. Then I created a second css file called custom.css. I changed it so that the customheader.php file called custom.css. I then created a custom.php template based off of page.php, got rid of the sidebar and called my customheader.php file like this: <?php include ('customheader.php'); ?>

    Worked like a charm!

    Posted 1 year ago #
  3. What I did was use the same theme files and check whether the visitor was viewing the forum or not. I did
    if (!function_exists('bb_head')) { // show the middle column }

    The bb_head function is only defined if the forum stuff is loaded, so if the template is loaded outside of the forum the middle column is displayed. If we're inside the forum, and bb_head is defined, the third column is displayed which makes the left column narrower.

    Ryan
    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.