Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1015803

    Hello, thanks, I want to place an external link a product of the portfolio and that opens in a new window, how can I do it? thanks

    #1016085

    Hey juliosecum,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #1016086

    Hey juliosecum,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #1016173

    Hello Victoria, thanks
    I pass you the accesses and a link of a screenshot. Ideally, when you click on a tour portfolio that has an external link open in a new window
    http://bogota-tourism.com.184-173-251-146.seanic7.net/bogota%20tourism.jpg

    Thanks!!

    #1016199

    Hi,
    If I understand correctly every portfolio product should open in a new tab/page we can add a script to do this but we will need to identify these links.
    I view your hummingbird portfolio item and the “payment options” did open in a new tab/page, which was the only link I saw. So if you can explain what I missed about your needs we can help.

    Best regards,
    Mike

    #1016710

    Thanks, Mike
    For now I have the following Portfolios Tours that I want to open in a new window
    GUATAVITA LAGOON TOUR, TOUR GUADUAS AND PIEDRA CAPIRA, VISIT A COFFEE FARM, GUATAVITA LAGOON AND THE SALT CATHEDRAL, RAFTING, SPANISH FOR BUSINESS, LEARN SPANISH IN BOGOTA, TOUR WALK TO LA CHORRERA AND SPA IN CHOACHI
    I would like to know when the Script is generated, where should I edit for future links of new portfolios tours
    Thanks and I remain attentive Mike

    #1016829

    Hi,
    Thank you for the information, but I’m still not sure why you are not using this option in the advanced layout builder:
    2018-10-01_205753
    Many of the pages above I looked at are empty, but if you had a button with the custom class “new-tab”
    and added this code to the end of your functions.php file in Appearance > Editor:

    function new_tab_script(){
      ?>
      <script>
    (function($){
    $(document).ready(function(){
      $('a.new-tab').click(function(){
        window.open(this.href);
        return false;
      });
    });
    })(jQuery);
    </script>
      <?php
      }
    add_action('wp_footer', 'new_tab_script');

    then they would open in a new tab.

    Best regards,
    Mike

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