Forums

[resolved] Site title and tag line? (13 posts)

  1. clevercarbuyer
    Member
    Posted 1 year ago #

    Hello there

    Currently clicking on my site title links to back to the same page i.e. clevercarbuyer.com/blog

    Is it possible to change this so it links to my homepage i.e. clevercarbuyer.com ?

    also,

    My tag line currently says:

    "Looking for a BMW? We can help, please go to http://www.clevercarbuyer.com"

    Is it possible to make the url a hyperlink so it links to my homepage?

    many thanks for any help.

    Mark

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Yes, it's possible - by creating a child theme and then editing your child theme's copy of the header.php template file.

  3. clevercarbuyer
    Member
    Posted 1 year ago #

    Thanks a lot.

    This is really at the limits of my understanding, I don't even know what php or css is!

    However, I've created twentyeleven child and within that a style.css file into which I have put this:

    /*
    Theme Name: Twentyeleven Child
    Description: Child theme for the twentyeleven theme
    Author: Mark Barker
    Template: twentyeleven
    */

    @import url("../twentyeleven/style.css");

    }

    ...and I've also created a header.php file and copied and pasted the contents of the twentyeleven header.php into it.

    Is that correct? I don't know what to do now though to get my site title and tagline to have links to my homepage? Can you shed any light please?

    Thanks a lot.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Edit your new child theme's header.php file and change:

    <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>
    </hgroup>

    to:

    <hgroup>
    <h1 id="site-title"><span><a href="http://www.clevercarbuyer.com/" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
    <h2 id="site-description"><a href="http://www.clevercarbuyer.com/"><?php bloginfo( 'description' ); ?></a></h2>
    </hgroup>
  5. clevercarbuyer
    Member
    Posted 1 year ago #

    Thanks I've done that and it's saved but it doesn't seem to have changed the site title link when you click on it, which is still clevercarbuyer/blog

    The tag line hasn't changed either?

    Any ideas?

    Thanks

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Have you actually activated your child theme yet?

  7. clevercarbuyer
    Member
    Posted 1 year ago #

    How do I do that?

    The instructions say:

    Dashboard > Themes > activate twenty eleven child

    ...but I can't see where/how to activate in Dashboard > Themes ?

  8. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Did you upload the child theme's folder to wp-content/themes?

  9. clevercarbuyer
    Member
    Posted 1 year ago #

    I think so...

    it's in my Cpanel:

    public_html/blog/wp-content/themes/twentyeleven/twentyeleven-child

  10. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    No. You must upload the child's folder to wp-content/themes - just like any other theme.

  11. clevercarbuyer
    Member
    Posted 1 year ago #

    Success!

    That's worked fine thank you.

    Only thing now is that this has changed the header picture. Do you know how to get the my twenty eleven parent picture back please?

  12. clevercarbuyer
    Member
    Posted 1 year ago #

    ps at the moment the picture changes every time you click the url

  13. clevercarbuyer
    Member
    Posted 1 year ago #

    It's ok I've sorted it, thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.