If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

CherryFramework4. How to add custom logo link

This tutorial shows how to change logo link in Cherry Framework 4 templates.

By default the WordPress logo is linked to site home page. In order to change this logo link to custom one in Cherry Framework 4 theme, please, perform the following steps:

  1. Login to WordPress admin panel and navigate to the Appearance -> Editor -> themeXXXXX -> functions.php file. Please note that themeXXXXX stands for the child theme number.

  2. Scroll file to the end and add the following line to the bottom of the file in order to change logo image link:

    add_filter( 'cherry_logo_image_format', 'my_change_image_logo_href' );
      	  function my_change_image_logo_href( $format ) {
          return '<a href="http://demolink.org"><img src="%2$s" alt="%3$s"></a>';
          }

    Replace the demo link with yours.

  3. In order to replace the text logo link, please, add the following code to the bottom of the file:

    add_filter( 'cherry_site_link_format', 'my_change_text_logo_href' );
        	function my_change_text_logo_href( $format ) {
            return '<a class="%1$s" href="http://demolink.org" rel="home">%3$s</a>';
            }

    Replace the demo link with yours in the code above.

  4. Save changes in the file. Refresh site home page and check the logo link after that.

In case Editor is disabled in your admin panel for some reason, please connect to server via FTP or use a cPanel File manager. Edit the functions.php file from the wp-content/themes/themeXXXXX folder on server. Please note that themeXXXXX stands for the child theme number.

Feel free to check the detailed video tutorial below:

CherryFramework4. How to add custom logo link