WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. sremy
    Member
    Posted 8 months 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
    http://keepower.com.au/

  2. bcworkz
    Member
    Posted 8 months 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.

Reply

You must log in to post.

About this Topic