• Hello

    Currently my logo is linking to my home page, as by default on my theme.

    I would like to change it to link to a website of my choice, could someone please tell me which line should I change?

    <?php if(get_option('mm_logo')) { ?>
    <a>"><img src="<?php echo get_option('mm_logo'); ?>" alt="<?php bloginfo( 'name' ); ?>" /></a>
    <?php } else { ?>
    <a>"><img src="<?php echo get_template_directory_uri(); ?>/images/logo.png" alt="<?php bloginfo( 'name' ); ?>" /></a>
Viewing 1 replies (of 1 total)
  • Hi,

    This should do it:

    (Replace http://YourLinkHere.com with your own link)

    <?php if(get_option('mm_logo')) { ?>
    <a href="http://YourLinkHere.com"><img src="<?php echo get_option('mm_logo'); ?>" alt="<?php bloginfo( 'name' ); ?>" /></a>
    <?php } else { ?>
    <a href="http://YourLinkHere.com"><img src="<?php echo get_template_directory_uri(); ?>/images/logo.png" alt="<?php bloginfo( 'name' ); ?>" /></a>
Viewing 1 replies (of 1 total)
  • The topic ‘Logo to link to a page’ is closed to new replies.