WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Eleven
Creating a full width page template (10 posts)

  1. wudaddy
    Member
    Posted 2 years ago #

    This is my first time using WordPress, and I am trying to customize one of my pages (forum) to use the entire width of TwentyEleven (without any sidebars, etc).

    My site is http://www.guruflex.com/forum

    I've been trying to follow several guides like these http://wordpress.org/support/topic/full-width-page-creating-your-own-page-templates?replies=2
    but the Page.php from TwentyEleven is different from what they had. For example, there is no <div_id="left-column"> or "get_sidebar", etc. I've been trying to copy the original Page.php and modifying it to make a new one but it just doesn't seem to work.

    Can anyone help with this? Thanks

    http://wordpress.org/extend/themes/twentyeleven/

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    don't edit the default theme Twenty Eleven directly - it is important to have an unedited defasult theme in the installation, as a fallback in case of problems.
    also, all customisations of Twenty Eleven will be overwritten with the next upgrade of your wordpress version.
    please create a child theme http://codex.wordpress.org/Child_Themes to make the edits in there.

    static pages (page.php) in twenty eleven don't have a sidebar - so no problem there.

    you need to adapt your css; example:

    .page-template-fullwidth-php #content { width: 100%; margin: 0; }
    .page-template-fullwidth-php .entry-content, .page-template-fullwidth-php .entry-header{ width: 90%; }
  3. wudaddy
    Member
    Posted 2 years ago #

    Thanks for your prompt response, alchymyth.

    Please bear with me as I'm still new to php. I tried to make a child theme by copying the TwentyEleven theme's folder and all its contents. I read the link you gave me and only said I needed a few files (mainly just style.css), with an @importurl function. When I tried doing this, it messed up my website (error page) so I reverted back to original TwentyEleven theme and deleted the child folder. As of now, I made a copy of TwentyEleven folder in a different directory so if I mess up I'll use that one.

    I am still confused on what I need to do to enable full width for the forum page. I'm assuming the "Default" page theme draws contents from page.php? I copy and pasted the two commands of code you wrote above into style.css but don't really know where to go from there. Do I still need to make a separate php page for the "full width" theme? If so can you direct me in how to do so?

    Much appreciated

  4. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    what I need to do to enable full width for the forum page

    simply add the suggested styles into style.css of your theme.
    possibly before this line: /* error404 */

    that should be all. no need to create any other template.

    then clear the browser cache (press 'CTRL F5' for instance) to get the changes to show immediately in the browser.

  5. Absar
    Member
    Posted 2 years ago #

    alchymyth I am having the same problem my site http://www.funfeat.com/programming/forum/ I also put the suggested two lines in style.css at the suggested place but no difference it makes

    please help me

  6. Absar
    Member
    Posted 2 years ago #

    I have also done that by editing the page through admin panel and selecting "Showcase template" under attributes......Now the forum displays perfectly :)

    But this caused a new problem.....
    you can see that now at the bottom of the page I can see the posts of my blog. Which should obviously not appear on the forum page
    please take a look here http://www.funfeat.com/programming/forum

  7. esmi
    Forum Moderator
    Posted 2 years ago #

    @Absar: It is impolite to interrupt another poster's thread. Please stick to your own topic.
    http://wordpress.org/support/topic/full-width-page-for-twenty-eleven

  8. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    to clarify and to avoid future confusion:

    my earlier reply in this topic referred mistakenly to the styles of Twenty Ten ;-(

  9. Absar
    Member
    Posted 2 years ago #

    I am sorry , Em new here and don't know the forum rules.....
    @alchymyth I guess this thread was for twenty eleven :O

  10. Tamoo
    Member
    Posted 1 year ago #

    @alchymyth Wonderful work! All the solutions you offer throughout all these posts are simply perfect. I must confess I'm a big fan of yours. It's so true that whenever I face a problem with WP now (I'm a newbie), I first google putting your pseudo first... It saves me a huge amount of time and I'm sure to always apply the right fix.

    I think you're ready to compile a book with all those brilliant tricks you offer. If you need a helping hand to translate in French, I'll be glad to help you.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic