Avada Forums Community Forum fusion-logo-link target top/blank

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • mgwaters
    Participant
    Post count: 1

    Did you figure this out? I’m needing to do the same.

    My guess is editing the /templates/logo.php file:
    $logo_anchor_tag_attributes = ”;

    but I’m not certain.

    lrzcgn
    Participant
    Post count: 3

    anyone found a solution for this ? i need to add the _blank attribute too..

    will@2020creativ.com
    Participant
    Post count: 4

    We need a fix urgently to the _blank link target issue – it’s not opening in a new window 🙁

    will@2020creativ.com
    Participant
    Post count: 4

    Did you have any luck with this? We have the same problem.

    marklchaves
    Participant
    Post count: 873

    Hi @will2020creativ-com,


    @mgwaters
    was very close in their post.

    You can update or override the logo.php file or try this filter in your child theme’s functions.php.

    
    
    /** Use an Avada filter hook to add a target attribute. */
    function my_custom_anchor_attributes() {
    	return
    	[
    		'class' => 'fusion-logo-link',
    		'href'  => $custom_link ? esc_url( $custom_link ) : esc_url( home_url( '/' ) ), // phpcs:ignore WordPress.CodeAnalysis.AssignmentInCondition.FoundInTernaryCondition
    		'target' => '_blank', // Add the target attribute. ~mlc 1 July 2020
    	];
    }
    add_filter('avada_logo_anchor_tag_attributes', 'my_custom_anchor_attributes');
    

    Good luck!

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