Forums

[resolved] How do I change the target/destination of the site title? (2 posts)

  1. craigjross
    Member
    Posted 11 months ago #

    I want to have the site title, link to a page other then the blog home page. The page exists on the site. I am running twenty eleven. I do have a child theme. header.php is in the child theme.
    My understanding is that I need to change something, or add the target url, in the hgroup but the only explanation that I have found seems out of date. 3 years ago.
    Below is the code that I am referring to.

    <hgroup>
    				<h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
    				<h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>

    The destination that I am wanting to link to is http://localhost:8888/test3.com/events/upcoming/

    Thanks

  2. craigjross
    Member
    Posted 11 months ago #

    Solve my own problem. Changed ?php echo esc_url( home_url( '/' ) to ?php echo esc_url( home_url( 'events/upcoming/' ) Site title now links to the desired page in the site. Awesome.

Reply

You must log in to post.

About this Topic