• Resolved craigjross

    (@craigjross)


    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 https://localhost:8888/test3.com/events/upcoming/

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter craigjross

    (@craigjross)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘How do I change the target/destination of the site title?’ is closed to new replies.