Cufon code: entry-title different for posts and pages (2 posts)

  1. sremy
    Posted 2 years ago #

    Hi Guys,

    I'm using a child theme of 2011 as the base for my site.

    What I want to do is have one style for page entry-title.
    and another style for post entry-title.

    Near as I can tell they have the exact same class and id, so does anyone know how I can set them up with different classes to work differently in css?

    Here's the current version of the site

  2. bcworkz
    Posted 2 years ago #

    Start by working on the content.php template. The default version has code above the main entry-title line for sticky posts, else the default entry-title html, then endif. Extend this logic with <?php elseif (is_page()) : ?> do one thing <?php else : ?> do the other.

    You may need to do something similar with other content-*.php templates.

Topic Closed

This topic has been closed to new replies.

About this Topic