[Resolved] Change default url logo

Home Forums Support [Resolved] Change default url logo

Home Forums Support Change default url logo

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #287443
    Natalia

    Hi, I created a site with generatepress, on the site I created a cover page or presentation, from which you access the main page of the site, where all the content. I want to change the url of the logo, so that it goes to the main page, not to the cover page or presentation. Can you tell me where I can change the default address of the logo?

    #287472
    Leo
    Staff
    Customer Support

    Hi Julián,

    You can use the generate_logo_href filter: https://docs.generatepress.com/article/generate_logo_href/

    So do something like this:

    add_filter( 'generate_logo_href','generate_custom_logo_href' );
    function generate_custom_logo_href()
    {
    	// Enter the URL you want your logo to link to below
    	return 'http://NEW-URL-HERE';
    }

    Adding PHP: http://docs.generatepress.com/article/adding-php

    Let me know.

    #287482
    Natalia

    Hello, thanks to your information has been solved. Thanks for the help.

    #287483
    Leo
    Staff
    Customer Support

    You’re welcome 🙂

    #688182
    Eddy

    Hi,

    I am trying to make a logo clickable for telephone.

    add_filter( ‘generate_logo_href’,’generate_custom_logo_href’ );
    function generate_custom_logo_href()
    {
    // Enter the URL you want your logo to link to below
    return ‘tel:+31999999999’;
    }
    I tried to add the snippet in the Code Snippet plugin
    but that didn’t work.

    Any suggestions !? Thanks !

    #688663
    David
    Staff
    Customer Support

    Hi Eddy

    can you raise a new topic where you have the option to share a link to the site.

    #744903
    Rick

    Is it possible to use the new GPP Elements to insert the filter code recommended above?

    #744905
    Leo
    Staff
    Customer Support
    #744910
    Rick

    Thanks for the super quick reply Leo!

    I created a child theme and inserted the code into functions.php. Worked like a charm.

    #744912
    Leo
    Staff
    Customer Support

    No problem 🙂

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