***UPDATE*** THE DIVI CALL TO ACTION MODULE NOW HAS THE OPTION TO OPEN IN THE SAME WINDOW/NEW TAB AS PART OF THE GENERAL SETTINGS *** UPDATE***

*****When you copy and paste the code below, go in and manually retype the ” ” ‘ ‘ as copy/paste causes issues with these characters***

To get ALL call to actions to open in a new tab you can add the following javacript into the ePanel integration <head> section

<script type=”text/javascript”>
jQuery(document).ready(function(){
jQuery(“.et_pb_promo_button”).attr(‘target’, ‘_blank’);});
</script>

To get A SPECIFIC call to action to open in a new tab, give that call to action a CSS ID (this examples uses my_call_to_action)

add then add the following javascript into your ePanel integration <head> section

<script type=”text/javascript”>
jQuery(document).ready(function(){
jQuery(“#my_call_to_action .et_pb_promo_button”).attr(‘target’, ‘_blank’);});
</script>

Comments

comments

Pin It on Pinterest