Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1666254
Custom link for site logo
Closed

Comments

  • mbounds started the conversation

    I am installing my gem theme wordpress installation in a subfolder of a main site.

    I need the hyperlink of main site logo for the wordpress installation to point to another path - not the root of the wordpress installation.

    I would normally do this by editing the header.php file for the theme, but expect to see a line of code something like this where I can change the href= part to my custom path.

    <a href="<?php echo site_url(); ?>"><img src="<?php header_image(); ?>" alt="<?php bloginfo('name'); ?>" /></a>

    But in your theme there is nothing like this in header.php as far as I can see.

    Could you tell me where to change it please?

    Thanks




  •  7,095
    Oliver replied

    Hi,

    You need to edit:

    function thegem_print_logo

    /wp-content/themes/thegem/functions.php

    line 2141

    You can create duplicate of this function in the child theme with another name and then set the function in the template header.php in the child theme.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • mbounds replied

    Perfect. That worked fine.

    Thanks Gregor

  •  7,095
    Oliver replied

    Welcome!

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver