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

    To whom it may concern,

    I have some portfolio items and I would like to have the “Link portfolio item to external URK) to open in a new tab.

    Is that possible please?

    Regards

    #1323432

    Hey,

    Thanks for contacting us!

    Please edit your element and go to Advanced > Developer Settings and give your element a custom ID (“blank-target” in example below) and then add following code to bottom of Functions.php file of your child theme

    function av_portfolio_new_tab() {
    ?>
    <script>
    	jQuery(window).load(function() {
    		jQuery('#blank-target a').attr('target','_blank');
    	});
    </script>
    <?php
    }
    add_action('wp_footer', 'av_portfolio_new_tab');

    Best regards,
    Yigit

    #1323487
    This reply has been marked as private.
    #1323491

    Hey,

    Please edit your Portfolio Grid or Masonry element that you are using to display your portfolio items and give it a custom ID.

    If you need further assistance with it, please point out the page where you are displaying your portfolio items and post temporary admin logins here privately :)

    Regards,
    Yigit

    #1323494

    Worked perfectly thank you so much :D

    #1323496

    Hi,

    You are welcome! :)

    For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/

    If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)

    Enjoy the rest of your day!

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Opening in a new tab’ is closed to new replies.