WordPress.org

Forums

Twenty Twelve
[resolved] Twenty Twelve remove the link in the site title (4 posts)

  1. wldwil
    Member
    Posted 10 months ago #

    I have a website here
    I am using a child Theme
    I am using Chrome developer tool and fir bug.
    I cannot figure out how to remove the link in the site title that takes you back to the home page.

    I would rather have the site title not linkable in order for phones to pick up a phone number when touched and dial it.

    Thanks

  2. esmi
    Forum Moderator
    Posted 10 months ago #

    You would need to edit the header.php template file inside your child theme and change:
    <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>

    to:

    <h1 class="site-title"><?php bloginfo( 'name' ); ?</h1>

  3. wldwil
    Member
    Posted 10 months ago #

    Awesome Esmi!

    I was starting there and deleting pieces at a time, but could not quite wrap my head around it.

    I tested it out and it does make the number clickable on the phone as well.

    Thanks much

  4. esmi
    Forum Moderator
    Posted 10 months ago #

    Glad I could help. :-)

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.