WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] site description in 2010 theme (7 posts)

  1. oldunclechalex
    Member
    Posted 3 years ago #

    Hi!
    I use 2010 theme. There is the so named site description in it. Can in be not the plain text, but a link?
    When I simply write <a>text</a> in this field it does not help.
    Kindly advise!

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    It can't be a link without modifying the header.php template file. But as any changes will be over-written the next time you upgrade WordPress or the theme, it is recommended that you consider creating a child theme for your customisations.

  3. oldunclechalex
    Member
    Posted 3 years ago #

    Thanks a lot! I managed to create a child theme with another style.css file.

    But this problem can be solved not with help of css. I guess I need to change the data in my database. Please,advise how to proceed!

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    You now need to create a modified header.php file in your child theme.

  5. oldunclechalex
    Member
    Posted 3 years ago #

    I modified header.php like this <div id="site-description"><a href="http://www.mysite.com"><?php bloginfo( 'description' ); ?></a></div>
    It works both in main and in child theme. Now I need to copy the modified file to child theme catalogue?

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    Now I need to copy the modified file to child theme catalogue?

    To the child theme folder? Yes.

  7. oldunclechalex
    Member
    Posted 3 years ago #

    Thank you very much, it works!

Topic Closed

This topic has been closed to new replies.

About this Topic