ThemeShaper Forums » Thematic


Creating new template based on fullwidth template

(9 posts)
  • Started 10 years ago by neonbible
  • Latest reply from nimmolo
  • This topic is not resolved


  1. neonbible

    I copied template-page-fullwidth.php to my child theme folder and renamed it to template-page-front.php. Changed the header to give it a new template name.

    I can select it from the page settings. However the page title and text still appears in the middle, as if there is still a center column of a 3 column layout. But there are no sidebars.

    Why is this the case?

    I see in 3c-fixed.css there is a reference to a class reference to "page-template-template-page-fullwidth-php". Has this got something to do with it? Where is the class defined?

    Posted 10 years ago #
  2. thematic creates a body class based on the template you are using. the .page-template-template-page-fullwidth #content and other rules set the width to be 100%. but since you are using a different template you are getting the default layout widths.

    you'll need to create some style rules for your own template.

    .page-template-template-page-front #content and .page-template-template-page-front #container are probably the 2 more important ones to setting up the full page layout.

    Posted 10 years ago #
  3. neonbible

    I've added ".page-template-template-page-front #content" into my 3c-fixed.css file and my default.css file. Doesn't seem to make a difference.

    Posted 10 years ago #
  4. are you adding stuff to the thematic style sheets? you should only need to copy the full page template style rules into your child theme's style.css and adjust for the template name you are using

    /* =Page Templates
    -------------------------------------------------------------- */
        Full Width Template
    .page-template-template-page-front-php #container {
    .page-template-template-page-front-php #content {
    	margin: 0 0 0 10px;
    .page-template-template-page-front-php #comments {
    Posted 10 years ago #
  5. neonbible

    Ok it works! But only if I put it in styles.css. Why? The original one for template-page-fullwidth-php is in 3c-fixed.css.

    Why can't I put it into my default.css file? That doesn't make sense to me.

    Oh and I never directly modify a thematic file, only my child theme.

    Posted 10 years ago #
  6. my guess is that you aren't importing your stylesheets correctly. just b/c you have a default.css and 3c-fixed.css in your folder doesn't mean your style is using them if you aren't pointing to them in your style.css. CSS files don't work that way (unlike PHP files).

    /* Reset browser defaults */
    @import url('../thematic/library/styles/reset.css');
    /* Apply basic typography styles */
    @import url('../thematic/library/styles/typography.css');
    /* Apply basic image styles */
    @import url('../thematic/library/styles/images.css');
    /* Apply basic layout styles */
    @import url('../thematic/library/layouts/3c-fixed.css');
    /* Apply default styles */
    @import url('../thematic/library/layouts/default.css');
    /* Prepare theme for plugins */
    @import url('../thematic/library/styles/plugins.css');

    if you child theme's style.css looks like the above then you are pulling in thematic's style sheets and you can change the default.css in your folder and you'll never see a change in the site until you change the @import (following assumes they are in the same folder as your style.css

    /* Apply basic layout styles */
    @import url('3c-fixed.css');
    /* Apply default styles */
    @import url('default.css');
    Posted 10 years ago #
  7. How can I apply this to all the template, not only to pages, but also posts?

    Posted 10 years ago #
  8. Sorry, I found the solution in another post by adding this to functions.php

    function remove_sidebar() {
    return FALSE;

    // Connect the filter to thematic_sidebar()

    add_filter('thematic_sidebar', 'remove_sidebar');

    Posted 10 years ago #
  9. nimmolo

    Helga, you are a goddess. I'm saying it in three places today because that's how many times you've helped me. :)))

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.