Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1439698

    Hi, Could you please advise on how to get the testimonial link to open in the same window? Thank you!

    #1439731

    Hey designyvr,

    Thank you for the inquiry.

    There is no option for this by default, but you can add this code in the functions.php file to dynamically remove the blank attribute from the testimonial link:

    function ava_custom_script()
    {
        ?>
        <script>
            (function ($)
            {
                // remove testimonial link blank attribute
                function g()
                {
                    $('.avia-testimonial-link').removeAttr('blank');
                }
    
                $(document).ready(function ()
                {
                    g();
                });
            })(jQuery);
        </script>
        <?php
    }
    add_action('wp_footer', 'ava_custom_script');

    Best regards,
    Ismael

    #1439775

    Thank you Ismael. I added this to the end of functions.php but the testimonial links are still opening in a new window (I also tested the code for same question that was posted in 2015 and 2016). I deleted the cache and also checked different browsers. Could you please take a look and advise? Thank you.

    #1439806

    Hi,

    Sorry about that. The script should remove the target attribute, not blank. We modified the code in the functions.php file a bit. It’s working correctly now.

    You might want to consider installing a child theme and transferring the modification to its functions.php file in order to preserve these modifications.

    Best regards,
    Ismael

    #1439858

    Thank you for your help Ismael! It works great and I installed the child theme. Thanks again!

    #1439862

    Hi,
    Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Testimonial Link: Open in the same window’ is closed to new replies.