Home Forums ConsultStreet Pro How to customize header logo url?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6593
    Stanislav Putalov
    Participant

    We need to direct header logo url to a different link. Not home page which is set by default. How do we do it? Thank you.

    #6599
    themearile
    Keymaster

    Hi mark835

    Thanks for contacting us.

    Please install and activate the Code Snippets plugin.

    After creating the new snippets paste the below code.

    add_filter( 'get_custom_logo', 'wecodeart_com' );
    function wecodeart_com() {
        $custom_logo_id = get_theme_mod( 'custom_logo' );
        $html = sprintf( '<a href="%1$s" class="custom-logo-link" rel="home" itemprop="url">%2$s</a>',
                esc_url( 'www.google.com' ),
                wp_get_attachment_image( $custom_logo_id, 'full', false, array(
                    'class'    => 'custom-logo',
                ) )
            );
        return $html;   
    } 

    For more help see the screenshot http://prntscr.com/tzxsa1

    Now check your site and let us know if it works.

    Thanks

    #6621
    Stanislav Putalov
    Participant

    Perfect! It works! Thanks. And how to redirect Site Title (it still goes to Home).

    #6664
    themearile
    Keymaster

    Hi mark835

    For the site title, we need to customize code in the theme file so if you want to change the site title link then please follow the below steps.

    Go to consultstreet-pro >> inc and open the template-functions.php file.

    And change the link like the screenshot http://prntscr.com/u0crvq

    Let me know if it works.

    Thanks

    #6716
    Stanislav Putalov
    Participant

    Great! Thank you very much. Fantastic theme and great support!

    #6723
    themearile
    Keymaster

    Hi mark835

    Glad to hear it and we are happy to help you. We hope you are enjoying the ConsultStreet theme.

    Please help us improve our customer satisfaction by writing a quick review https://wordpress.org/support/theme/consultstreet/reviews/?filter=5 We would be extremely grateful.

    Please let me know if you need any further assistance..!

    Thank you for your time.

    Have a nice day..!

    Thanks & Regards
    ThemeArile

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How to customize header logo url?’ is closed to new replies.