• As with most sites, the logo in the header, when clicked directs to the home page. I’d like it to instead, link to the ‘events’ page. I looked in the header code, and am not sure how to do this. Any advice is appreciated.

    The page I need help with: [log in to see the link]

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.www.ads-software.com/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 5 years, 7 months ago by Gustav.
    Thread Starter cgl102770

    (@cgl102770)

    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)
  • The topic ‘Make logo link to different page’ is closed to new replies.