WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Title display issue (3 posts)

  1. Rhand
    Member
    Posted 2 years ago #

    Trying to display title in header echoeing it:

    echo '<h1 id="title"><a href="' . bloginfo('url') . '"' .  '  ' . 'title="' .bloginfo('name') .'">' . bloginfo('name') . '</a></h1>';

    It is parsed, but link is kicked out of h1 and url is printed instead of used to make the blog title link home:

    <div id="title-area">
    http://domain.com/zoneA ZoneA Zone
    <h1 id="title"><a title="" href=""></a></h1>

    Cannot figure out just yet why..

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    in strings, use: get_bloginfo('url') and get_bloginfo('name')
    http://codex.wordpress.org/Function_Reference/get_bloginfo

  3. Rhand
    Member
    Posted 2 years ago #

    Should have known that. Thanks a million!

Topic Closed

This topic has been closed to new replies.

About this Topic