Several entry title styles?

  • Unknown's avatar

    Hello,

    with Twenty-ten, is it possible to create several styles (font size, color, background etc.) for post titles?
    What I would like is to have an entry with a specific style, then the next entry would have another style etc.

    The blog I need help with is: (visible only to logged in users)

  • Hello,

    each post has a different id, so if you need to set up a specific style for a post for example for the post “La lande ne sera pas pourpre cette année” you need to take its is and then title:

    #post-6681 {
    .entry-title {
    font-size: …;
    color: …;
    }
    }

    I hope it helps :)

  • Unknown's avatar

    Thank you!
    Sounds a good idea. I’ll give it a try.

  • Unknown's avatar

    I tried to apply your tip but it doesn’t work
    I applied it on my previous post “La plante à l’affiche : Une orchidée collante…”
    with post-id = 6083

    I tried several versions :

    #post-6083 {
    .entry-title {
    color: #006600;
    }
    }

    and

    #post-6083 .entry-title {
    color: 006600;
    }

    and also

    #post-6083.entry-title {
    color: 006600;
    }

    but but to no avail ;-(

    Do you see why?

    Thanks in advance

  • Unknown's avatar

    Hey there,

    Your second attempt should work but just looks like you missed the hashtag in front of you color code.

    Try this out:

    #post-6083.entry-title	{
    color: #006600;
    }
    

    Let me know if it works!

    Cheers

  • Now I see that inside h2 tag there is a link () so you need to adress it like this:

    #post-6083 {
    .entry-title a {
    color: #006600;
    }
    }

    or

    #post-6083 .entry-title a {
    color: #006600;
    }

    The one below is wrong, because it adresses the element, that has the id “post-6083” and the class “entry-title” in the same tag.

    #post-6083.entry-title { … }

  • Unknown's avatar

    Great! This works

    #post-6083 .entry-title a {
    color: #006600;
    }

    Thank you so much!

  • The topic ‘Several entry title styles?’ is closed to new replies.