• Resolved astephens

    (@astephens)


    I want the title “Good News” on the home page right sidebar to be a link directly to the blog page. http://www.gracechurchhouston.com

    I must have the syntax wrong… ?
    I have this in the code for the page template:

    <aside id=”siderightnarrow”>
    <h3>Good News</h3>
    (and it continues with the “query post” code to pick up the individual posts)

    but not showing a link… probably something dumb I’m doing.
    (this is a blank template created from scratch for a web design class a year ago)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have you tried something like this:

    <h3><a href="<?php echo esc_url( home_url( '/blog' ) ); ?>">Good News</a></h3>

    Thread Starter astephens

    (@astephens)

    I just tried that and it did work. Thank you!

    However it did change the color of the title text to blue like the other links. It looks darker probably because it has the drop shadow.
    http://gracechurchhouston.com/

    I would like to keep the same look as the “Pastors” title text on the About page which is not a link (right sidebar).
    http://gracechurchhouston.com/about/

    Maybe i need to create a separate id selector in css for that h3 title to make it stay gold color?
    Thanks so much for your help!

    Glad it worked. Just add a class and style it the same as your current h3.

    <h3 class="sidebar-title"><a href="<?php echo esc_url( home_url( '/blog' ) ); ?>">Good News</a></h3>

    And in CSS:

    .sidebar-title a {
        add your CSS
    }
    .sidebar-title a:hover {
        add your CSS
    }
    Thread Starter astephens

    (@astephens)

    Thank you, Mike. You definitely directed me to the solution and I appreciate all your help! 🙂
    Looking good now!

    You’re welcome. Glad you got it sorted out.

    Please mark this thread as resolved.

    Thread Starter astephens

    (@astephens)

    Resolved…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘put href link to another page inside tag’ is closed to new replies.