Home › Forums › Support › Change site logo link This topic has 4 replies, 3 voices, and was last updated 3 years, 1 month ago by Elvin. Viewing 5 posts - 1 through 5 (of 5 total) Author Posts February 11, 2021 at 8:21 am #1654680 Alfonso Hi there, I need to edit site logo link, to refresh the current page, how i can do it? Thanks! February 11, 2021 at 3:19 pm #1655112 YingStaff Customer Support Hi Alfonso, You could use this PHP snippet: add_filter( 'generate_logo_href', function() { return $_SERVER ; } ); Adding PHP: https://docs.generatepress.com/article/adding-php/ Let me know 🙂 February 11, 2021 at 3:25 pm #1655119 Alfonso Hi there, I’ve added the PHP Snippet, the site logo link is working fine but is displaying a error message: https://snipboard.io/dFDBUG.jpg February 11, 2021 at 10:48 pm #1655305 Alfonso Hello. How i can fix the error message? February 12, 2021 at 12:26 am #1655379 ElvinStaff Customer Support Hi there, Can you try this instead? add_filter( 'generate_logo_output', 'tu_logo_class', 10, 3 ); function tu_logo_class( $output, $logo_url, $html_attr ) { printf( '<div class="site-logo"> <a href="%1$s" title="%2$s" rel="home" onclick="location.reload(true);"> <img %3$s /> </a> </div>', '#', esc_attr( apply_filters( 'generate_logo_title', get_bloginfo( 'name', 'display' ) ) ), $html_attr ); } Let us know how it goes. Author Posts Viewing 5 posts - 1 through 5 (of 5 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In