New Landing How can we help? Themeforest Theme Support Joyn Alternate landingpage when clicking on alternate logo?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Joyn
  • #275928
    nosuchagency
    Member
    Post count: 226

    Hello.

    Is it possible to define a alternate landingurl, when users click on the alternate logo?

    Here’s the scenario.
    We’ve utilised the alt-logo function on several pages on our site.
    When users click the alt-logo, they’re sent to the homepage of the site (which is the “regular” section of the site), and that leads to some confusion and a poor user experience.
    Video of issue can be found here: https://youtu.be/9LaZ19JsQ3M

    Let me know your thoughts on this.

    Thank you.

    SorenJ :o)

    #276202
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    There is a filter that can be used.

    Can you try to add the code below to your functions.php of the child theme

    function custom_alternative_link(){
       
       global $post;
       
       if( sf_get_post_meta( $post->ID, 'sf_page_header_alt_logo', true ) ){
          return "http://www.mycustomlink.com";
       }
    }
    add_filter('sf_logo_link_url', 'custom_alternative_link');

    The other option will be to paste the function sf_logo() in the functions and modify the url if we are in an alternate logo page.

    Let me know if it worked.

    -Rui

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.