WordPress.org

Ready to get started?Download WordPress

Forums

Adding shadow to blog title or description (1 post)

  1. xrun
    Member
    Posted 2 years ago #

    Hi.
    I'd like to add a shadow behind the blog title and/or description in the heading of the blog.
    What I have so far is echoing the title or description again in black shifted a couple of px down and to the right. This turns out to be a lot of code compared to the task, first the shadow and then the same repeated for the bright front of the letters:

    <a style="top:101px; left:37px; position:absolute; color:#222;" href="<?php bloginfo( 'url' ); ?>"><?php bloginfo( 'name' ); ?></a>
    <a style="top:99px; left:35px; position:absolute; color:#fff" href="<?php bloginfo( 'url' ); ?>" title="<?php bloginfo( 'name' ); ?>"><?php bloginfo( 'name' ); ?></a>

    Any ideas on a simpler way to get the same result (text shadow), and which can be hardcoded into the template file?

Topic Closed

This topic has been closed to new replies.

About this Topic