ThemeShaper Forums » Thematic


Different CSS for a custom page template

(5 posts)
  • Started 9 years ago by LizaValero
  • Latest reply from LizaValero
  • This topic is not resolved
  1. I have created a custom page template in my child theme of Thematic and named it page-template-listingsite.php. It shows as an option for a template when I make a new page.
    I have seen how a alternate stylesheet can be used for a specific page, whether it is by ID number, or page name, but can the stylesheet be used whenever the page-template-listingsite.php is used?

    Posted 9 years ago #
  2. The answer is yes.

    For loading a different style sheet, reference

    For the Conditional Tags to use, reference

    Now, as a follow up, how much are the styles really changing? With WordPress/Thematic, they do use body classes, so if you check in your body tag you will see

    <body class="page page-id-11 page-template page-template-template-page-fullpage-php layout-2cr">

    So if you are needing minimal style changes, you could actually target the class of .page-template-template-page-fullpage-php (which is my full page template) and override the styles of other pages, this will be by far easier than adding another style sheet. Just depends on what you are trying to accomplish and how different the page is.

    Posted 9 years ago #
  3. Thanks so much. That would be easier, but I can't get it to work. What am I doing wrong? Here is what I added to my style.css

    #footer .page-template-template-page-listingsite-php {

    It is at the bottom of the style sheet but the color of normal footer still shows on that page
    The regular style sheet/page template is at
    and the page I am trying to work with is at

    Posted 9 years ago #
  4. .page-template-template-page-listingsite-php #footer {

    Is what you are looking for since the footer is inside the body tag. ;)

    Posted 9 years ago #
  5. THANK YOU!!! I will get this all to make sense one day

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.