Forums

Using Multiple Text Specs on Blog Title (newbie) (4 posts)

  1. Michael Witmore
    Member
    Posted 2 years ago #

    I am a new (and very impressed) user of WordPress 2.8 and have successfully made minor changes to my Thematic blog using Child Themes (as explained in online documentation). The blog is here: http://www.winedarksea.com

    One difficulty remains: I would like to use two colors for the title of the blog, black for "Wine Dark," and the deeper red color for "Sea." So far I have not been able to figure out how to disentangle different parts of the Blog Title for separate treatment in the child CSS. Any suggestions?

    Many thanks,

    Michael Witmore

  2. Christian Schenk
    Member
    Posted 2 years ago #

    What about adding a span element around, say, "Sea" so you can style it with CSS?

    Open the file header-extensions.php and search for the function "thematic_blogtitle". There you'll see a call to "bloginfo('name')". Replace the second one - i.e. the resulting text inside the a element - with the following code:

    echo str_replace('Sea', '<span class="sea">Sea</class>', get_bloginfo('name'));

    Once you've done that you can remove line 36 from your stylesheet - resets the color to black - and add the following new stanza to color the word "Sea":

    span.sea { color: #CC0000; }

  3. imranexpt
    Member
    Posted 2 years ago #

    The correction:

    it should be

    echo str_replace('Sea', '<span class="sea">Sea</span>', get_bloginfo('name'));

    .
    -----------------------------------
    Premium wordpress theme generator with CMS features
    http://www.wpthemebuilder.com

  4. Christian Schenk
    Member
    Posted 2 years ago #

    Sure, thanks imranexpt!

Topic Closed

This topic has been closed to new replies.

About this Topic