• i want it to link to my external website not the blog homepage

    i went to logo.php but doesnt seem like theres anything there

Viewing 7 replies - 1 through 7 (of 7 total)
  • hannah

    (@hannahritner)

    Hey @aldiokenih
    You would need to add a filter to your functions.php folder within your child theme. The filter would look like this:

    add_filter(‘kadence_logo_link’, ‘custom_logo_url’);
    function custom_logo_url($link) {
    return https://www.example.com;
    }

    Hope that helps!

    Best,
    Hannah

    Hey,
    I just want to follow up, I noticed Hannah has this filter a little bit incorrect.

    I suggest using a code snippet plugin: https://www.ads-software.com/plugins/code-snippets/

    And the filter is:
    kadence_logo_url instead of kadence_logo_link so you would just update that.

    add_filter('kadence_logo_url', 'custom_logo_url');
    function custom_logo_url($link) {
    return 'https://www.example.com';
    }

    All the best,

    Ben

    So, when I activated the filter as it is (changing of course example.com) my website crashed.

    Moreover, when I typed the filter as it is, code snippets was giving me three errors, on line 3 and 4, expecting to basically swap : and }.

    Any idea on what’s happening?

    add_filter('kadence_logo_url', 'custom_logo_url');
    function custom_logo_url($link) {
    return 'https://www.example.com';
    }

    Add single quotes around the url. Sorry that should have been in the example above.

    Ben

    Amazing! It worked.
    Thank you very much.

    @britner, is it possible to delete the erroneous links… I copy pasted before reading to the bottom.

    ..and then failed to test the code by executing once (code snippet option) and staying on the code snippets screen.

    oh and btw thanks it worked fine in the end

    bryan

    @keniry The editing window here is 1 hour… I did update the first reply from the theme author, though.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘how can i change the URL the logo goes to?’ is closed to new replies.