[Support request] WP Generate Press make logo clickable for click to call (telephone)

Home Forums Support [Support request] WP Generate Press make logo clickable for click to call (telephone)

Home Forums Support WP Generate Press make logo clickable for click to call (telephone)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #688996
    Eddy

    Hi,

    I am trying to make a logo clickable for for click to call (telephone)
    for my friend (Dutch Woodstove Dealer).

    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 !

    GeneratePress 2.1.4
    #688998
    Eddy

    Please note that the main page is not powered by Generate Press (Just-The-Page Plugin) (html).
    Please add /houtkachel/ to the earlier provided url. Thanks

    #689070
    Tom
    Lead Developer
    Lead Developer

    What if you do this?:

    add_action( 'after_setup_theme', function() {
        add_filter( 'generate_logo_href', function() {
            return 'tel:+31999999999';
        } );
    } );

    Let me know 🙂

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