Forums

Editing the look of certain pages (11 posts)

  1. JemEnglert
    Member
    Posted 4 months ago #

    I am currently using the Chunk theme on my website MySchoolFails.com/blog/.

    However, on pages (everything but the blog) I don't want the large whitespace on the left. I figured out how to remove it by editing the content.php, but this removes it from every page, including the blog.

    How do I remove the left column/white space just on pages?

    http://500designs.com/ uses the Chunk theme and they seemed to be able to make it work somehow.

  2. alchymyth
    The Sweeper
    Posted 4 months ago #

    use the existing css class output by body_class() to add some more specific css classes to remove the empty area;

    example:

    .page #contents { margin-left:15px; border-left: none; }
    .page #contents .main { width:96%; }
  3. Pankaj Pandey
    Member
    Posted 4 months ago #

    This theme have option to choose one column template. Go to page edit and change the templates.

    Thanks

  4. JemEnglert
    Member
    Posted 4 months ago #

    Pankaj, thanks for the reply but are you sure?

    When I try to change the template only "Default" shows up as an option.

    That would be great if it's set up already!

    - Jeremy Englert

  5. Pankaj Pandey
    Member
    Posted 4 months ago #

  6. JemEnglert
    Member
    Posted 4 months ago #

    Since I'm basically trying to make an exact copy of the page, but without the white space, I was going to copy the file and just make the needed changes. I copied the content.php, made the changes and saved it as a template.

    However, when I use this template, the page shows up as mainly plain text and is missing many elements. Did I copy the wrong file/template?

  7. JemEnglert
    Member
    Posted 4 months ago #

    I realize you would normally copy the "page.php" but this theme doesn't have that file.

  8. Pankaj Pandey
    Member
    Posted 4 months ago #

    Copy index.php

  9. JemEnglert
    Member
    Posted 4 months ago #

    Pankaj, first off, thank you for all of your help!

    But I still seem to be having issues. I copied "index.php" and created a new template called "NoSidebar.php". I applied that template to a page, but something seems to not be working correctly.

    Here is the page with the "NoSidebar.php" template (it is an exact copy of index.php, except for the template name at the top):

    http://www.myschoolfails.com/blog/stickers/

    Any ideas on what went wrong?

    Edit - Fixed it! One ">" in the wrong spot, haha.

  10. JemEnglert
    Member
    Posted 4 months ago #

    But now that I have an exact copy of "index.php" working, I need to edit the template so it doesn't contain the left "sidebar", however the information for that is found in the "content.php".

    I'm assuming I have to make a "content2.php" and make the new template call on that command?

  11. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

    Review custom page templates. For a start, you appear to be missing an opening <?php tag on your get_header() line.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.