Avada › Forums › Community Forum › fusion-logo-link target top/blank
Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
Hi there,
Is there any way to set target top or blank for the fusion-logo-link?
Thanks a lot!
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.
anyone found a solution for this ? i need to add the _blank attribute too..
We need a fix urgently to the _blank link target issue – it’s not opening in a new window 🙁
Did you have any luck with this? We have the same problem.
@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!
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Was this topic helpful?