• 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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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)?

    Thread Starter vidisad

    (@vidisad)

    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.

    So you put the web address directly into the description?

    Thread Starter vidisad

    (@vidisad)

    So you put the web address directly into the description?

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

    peiqinglong

    (@peiqinglong)

    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="https://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.

    Thread Starter vidisad

    (@vidisad)

    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 openhttps://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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Linking weblog tagline’ is closed to new replies.