Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #448334

    Hi,

    I want the link I enter into the website link area in the testimonial to open in the same window. I’ve tried using css code:

    .avia-testimonial-link {
    target=”_self”
    }

    but it hasn’t worked. Do I have to change the php? if so can you let me know what to change…

    Thanks,

    Deirdre.

    #448400

    Hey icebirdmedia!

    Please remove the code from Quick CSS field and add following to Functions.php file in Appearance > Editor

    function add_custom_target(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('a.aviablank.avia-testimonial-link').attr('target','_self');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_target');

    Cheers!
    Yigit

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