By default, clicking on the site logo takes you to the home page of the site. I'd like modify this to have the site logo link to a page of my choosing. Is this possible?
To apply a custom link to the logo in your theme, you can use the apply_filters( 'kalium_logo_url', home_url() ) filter. Here's how you can modify this to add your custom URL:
Steps:
Open your theme's functions.php file: This is where you'll add the custom filter.
Add the following code:
function custom_kalium_logo_url( $url ) { // Replace with your custom link return 'https://example.com'; }
add_filter( 'kalium_logo_url', 'custom_kalium_logo_url' );
By default, clicking on the site logo takes you to the home page of the site. I'd like modify this to have the site logo link to a page of my choosing. Is this possible?
To apply a custom link to the logo in your theme, you can use the apply_filters( 'kalium_logo_url', home_url() ) filter. Here's how you can modify this to add your custom URL:
Steps: