Support » Theme: Dara » Customise Logo Link URL (Dara child theme)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Alec,

    I am trying to change the link that the ‘logo’ image directs to (currently the home page) to an outside website so that we can use this for a web banner.

    The code containing the URL linked to your site logo can be found in Components > Header > site-branding.php — this component is loaded into the main header.php file.

    By default, the logo links to your home URL but you can take this code and modify it in the child theme you have created.

    I hope this helps.

    Thanks so much for helping Gemma. I’m still a bit lost I’m afraid, I can do basic FTP tasks but am a bit of a noob at the more complicated stuff.

    Within my wp-content>themes>dara-child theme folder, in header.php all I can find relating to site branding is the below. I can’t find site-branding.php.

    <body <?php body_class(); ?>>
    <div id=”page” class=”site”>
    <?php esc_html_e( ‘Skip to content’, ‘dara’ ); ?>

    <header id=”masthead” class=”site-header” role=”banner”>

    <?php get_template_part( ‘components/header/custom’, ‘header’ ); ?>

    <?php get_template_part( ‘components/header/site’, ‘branding’ ); ?>

    <?php get_template_part( ‘components/navigation/navigation’, ‘top’ ); ?>

    </header>

    Would be very grateful if you can talk me through what to change.

    It’s this:

    <?php get_template_part( ‘components/header/site’, ‘branding’ ); ?>

    It’s in the components/header folder.

    Walking you through the change is a bit outside the scope of support we can offer here, though.

    That said, most sites have the logo / header link right there and I think if you use it as a banner ad, you might confuse your readers.

    Have you thought about putting a banner above that, using a plugin? There are several that will insert banners above branding and what not.

    Thanks. I’ll try the plugin options first, to see if I can get a better solution there.

    You’re welcome and best of luck with the plugin route!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.