Support » Fixing WordPress » Make logo link to different page

Viewing 3 replies - 1 through 3 (of 3 total)
  • It is WordPress core code to output the logo HTML. The theme just calls the function in the place it is wanted.
    If you look at the code,
    https://developer.wordpress.org/reference/functions/get_custom_logo/
    you can see that there is a filter at the end, but you would have to be careful how that is changed. The easier way is to make a child theme, copy your theme’s template file where the logo is output (usually header.php but maybe not), and then change the logo call to a new function that you write by copying the function code in the above link. You would just change the name of the function and the link from home to your events page.

    /wp-content/themes/white-rock-progression/inc/template-tags.php

    Find this.
    <?php if ( get_theme_mod( 'progression_studios_one_page_nav') == 'on') : ?><a href="#boxed-layout-pro" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" class="scroll-to-link"><?php else: ?><a href="<?php echo esc_url( home_url( '/' ) ); ?>

    Replace.
    <?php if ( get_theme_mod( 'progression_studios_one_page_nav') == 'on') : ?><a href="#boxed-layout-pro" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" class="scroll-to-link"><?php else: ?><a href="PAGE NAME HERE" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php endif ?>

    PAGE NAME HERE the page name not the link to the page.

    • This reply was modified 2 months, 3 weeks ago by  Tri Paloski.

    Thank you all for the replies. I’ve done a search through “template-tags.php” and don’t see that initial code anywhere. However, I’m not very familiar with php. Am I doing something wrong? Thanks again for the reply.

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