It seems that by default, the testimonial website links open in a new window. I would like to have them open in the same window. I am using a child theme. What is the best way for me to change this so that links open in the same window?
Hi sandymeier!
Try adding this to the child theme functions.php file.
add_action( 'wp_footer', 'enfold_customization_testimonial_targets' );
function enfold_customization_testimonial_targets(){
?>
<script type = "text/javascript">
jQuery(document).ready(function(){
jQuery('.avia-testimonial-link').attr('target', '_self');
});
</script>
<?php
}
Best regards,
Elliott
I added the code to functions.php and I see that the script is properly inserted in the footer, but links still opens in a new window.
Hey!
Do you mind creating a temporary admin login and posting it here privately so we can look into it?
Cheers!
Yigit
Thanks Yigit. I went ahead and did this.
https://kriesi.at/support/topic/testimonials-website-link/
I’ll just have to remember to change it with the next theme update.
Hi!
You can avoid re-applying the changes each time by using a child theme. You can find instructions here – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Best regards,
Yigit
Thank you!!
Hi!
We are glad you got that short out!
Btw, If you have a moment, I would very much appreciate if you could quickly rate the Enfold to themeforest, which wiII heIp us keep the deveIopment up!
Please do not hesitate to contact us, if you do need anything else.
Regards,
Basilis