how do i change my logo on the site to direct to another site?

hey. I've got a subsite (http://www.themythica.com) which has my logo on it on the top left.

However, I want it to point to the main site (http://www.intothemythica.com) when clicked.

how to do?

  • Luís

    Hi Griffin ,

    Hope you're doing well today!

    I think it will require a modification in the theme to set a different url, however, I flagged the SLS team (our code experts :slight_smile: ) to investigate further and get their valuable feedback.

    Since this team deals with more advanced threads it may take them longer to reply

    Can you give us access to your admin panel, so we can give a look in the theme structure?

    If you don't already know, please, follow the link below, to see how enable the staff login:

    http://premium.wpmudev.org/manuals/wpmu-dev-dashboard-enabling-staff-login/

    When you enable this option, please post again!

    Cheers, Luís

  • Luís

    Hi Griffin ,

    Hope you're doing well today!

    After look to the theme structure, I would suggest to do the following:

    1) As you are already using a child theme, we can change the header.php and upload it to the child theme to override the default one, so, download and open the header.php in a PHP editor ;

    2) Close to the line 34, you will find this code:

    <div id="gp-logo">
    	<?php if ( ghostpool_option( 'desktop_logo', 'url' ) OR ghostpool_option( 'mobile_logo', 'url' ) ) { ?>
    		<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo( 'name' ); ?>">

    Then we can change the code to add a clause, if it's the mythica subsite (id=196), to change the url:

    <div id="gp-logo">
    	<?php if ( ghostpool_option( 'desktop_logo', 'url' ) OR ghostpool_option( 'mobile_logo', 'url' ) ) { ?>
    	<?php 
    
    		$blog_id = get_current_blog_id();
    
    		if($blog_id==196){ ?>
    		<a href="http//yourdomain.com" title="Main Site">
    
    		<?php } else { ?>
    
    		<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo( 'name' ); ?>">
    
    		<?php } ?>

    3) Using FTP, upload this modified header.php to the child theme.

    Cheers, Luís

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.