This code snippet targets MyListing’s Button 4 style (.button-4), so if you want to target a different button style, be sure to update the snippet accordingly.
JavaScript
jQuery('.button-4').attr('target', '_blank')If you only want to target buttons in a particular block, the steps below will help.
- Custom Block ID > Add a custom ID (e.g., myblockid) to the desired single listing block
- Adjust the code snippet as shown below, replacing myblockid with your ID from the previous step
JavaScript
jQuery('#myblockid .button-4').attr('target', '_blank')