Categories

Featured templates

CherryFramework4. How to add custom logo link

Stacy Martin June 16, 2016
Rating: 5.0/5. From 2 votes.
Please wait...

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 '%3$s';
          }

    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 '%3$s';
            }

    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
Wordpress Commercial Themes
This entry was posted in Monstroid Tutorials, WordPress Tutorials and tagged CherryFramework4, custom link, logo. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket