Forums

Linking weblog tagline (7 posts)

  1. vidisad
    Member
    Posted 5 years ago #

    I'd like to link the weblog tagline with the main site but don't know php scripting that much. I can't find that code at all. Pointing me to the right direction will be appreciated.

  2. peiqinglong
    Member
    Posted 5 years ago #

    Just add <?php bloginfo('description');?> to wherever you want it to appear.

    I'm assuming this is what you mean by tagline (Admin > Options > Tagline)?

  3. vidisad
    Member
    Posted 5 years ago #

    I replaced description with a web adress (see it here)and want to add href tag but don't know how to find the reference page.

  4. peiqinglong
    Member
    Posted 5 years ago #

    So you put the web address directly into the description?

  5. vidisad
    Member
    Posted 5 years ago #

    So you put the web address directly into the description?

    Yes I did, but where to put a href="http://www.damjanac.com">www.damjanac.com</a> ?

  6. peiqinglong
    Member
    Posted 5 years ago #

    Try this, not sure if it'll work, but worth a try:

    <a href="<?php bloginfo('description');?>"><?php bloginfo('description');?></a>

    Just insert that wherever you want...

    If that doesn't work just do:

    <a href="http://www.damjanac.com"><?php bloginfo('description');?></a>

    The advantage of the first method is that whatever you put in the tagline will change both of these without having to hack more of the code.

  7. vidisad
    Member
    Posted 5 years ago #

    The first method didn't work. Inserting it I would get 404 error. and I can see on the status bar it's trying to openhttp://damjanac.com/wp/www.damjanac.com. It's actualy adding the description to the blog url.
    Second method works fine and I know if the tagline gets changed it will be linked to www.damjanac.com
    Thank you very much for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic