Open Services in New Tab

Hi,

Does anyone have a CSS snippet or JQuery snippet that I can use to force all Services to open in a new tab?
I have tried addingthe below to Footer Scripts but this doesn’t seem to work.

    <script>
    (function($){
     $(document).ready(function(){
         "use strict";

    	 $('.service-title a').attr('target', '_blank');
    				 
     });
    })(jQuery);
    </script>

Thanks!

Hello, you can try to do it with jQuery.

  1. Please install and activate Insert Headers and Footers plugin that will allow you to insert JavaScript (jQuery) code.

  2. Go to SettingsInsert Headers and Footers → add the following code to Scripts in Header section, and click Save button:

<script>
    jQuery(document).ready(function(){
        jQuery('.services-icon a, .service-link a').attr('target', '_blank');
    });
</script>

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.