change logo url

Home Support Blog Way Plus change logo url

  • This topic has 6 replies, 2 voices, and was last updated 2 years ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #7427
    Anonymous
    Inactive

    Hi I purchased Blog Way Plus and I’m currently using the child theme. How do I change the url of the logo so that when clicked on it will direct user to a specific website or page rather than the theme’s home

    #7428
    ProDesigns
    Keymaster

    Hi @superchrisho

    When you click on logo it needs to go to home page of your site not the page of theme.

    Can you please provide us your site URL? We will check your site and provide you proper solution.

    Thank you.

    #7429
    Anonymous
    Inactive

    I’m trying to change the url of the logo to http://chrisacademy.sg
    My wp site is http://blog.chrisacademy.sg

    #7430
    ProDesigns
    Keymaster

    Hi @superchrisho

    There is no option to change URL of the logo from backend.

    We are sorry for it.

    #7431
    Anonymous
    Inactive

    I managed to shortlist it down to the function blog_way_plus_logo() found in hooks.php, but I can’t seem to find where that function is created. It doesn’t make sense that it can’t be changed since the logo has been given a task to redirect to homepage when clicked upon.

    #7432
    Anonymous
    Inactive

    I managed to find the solution myself, thanks to google and internet.

    inserting into functions.php:

    add_filter( ‘get_custom_logo’, ‘wecodeart_com’ );
    function wecodeart_com() {
    $custom_logo_id = get_theme_mod( ‘custom_logo’ );
    $html = sprintf( ‘%2$s‘,
    esc_url( ‘www.google.com’ ),
    wp_get_attachment_image( $custom_logo_id, ‘full’, false, array(
    ‘class’ => ‘custom-logo’,
    ) )
    );
    return $html;
    }

    Just change ‘www.google.com’ to your url required. Hope this helps other users. Would have been helpful if the developers had put in more effort in supporting paid users.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.