How to make "purchase package" button open in new window?

Home Forums Jevelin Theme How to make "purchase package" button open in new window?

Home Forums Jevelin Theme How to make "purchase package" button open in new window?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • heatherruthcreative
    Participant

    Hi, I have another page where I would like the “purchase package” button to open in a new window (and not in the current window like it does).  Here is the screenshot (from http://www.danataft.com/yoga/packages/)

     

    Thanks!

    Attachments:
    You must be logged in to view attached files.

    Hi @heatherruthcreative,

     

    Thank you for your question.

     

    I tried to access your shared site but it is displaying the message “New Website Coming Soon”.

     

    Could you please either disable it or would you mind if i log in to your site and access it? If this is ok then could you please share me your site log in details privately by adding them in the box having text “Click here to share private content. Only you and forum moderators will bee able see it.”?

     

    Best regards,
    Shufflehound team

    heatherruthcreative
    Participant

    Yes, it is disabled now: http://www.danataft.com/yoga/packages/

    To achieve this please add following custom code in the bottom of functions.php file of child theme that you are using on your site.

     

    function add_pricing_button_custom_scripts(){ ?>
    	<script type="text/javascript">
    		jQuery(document).ready(function($){
    			$("#page-container .sh-pricing-content-center a.sh-pricing-butto").attr("target","_blank");
    		});
    	</script>
    <?php }
    add_action('wp_footer', 'add_pricing_button_custom_scripts', 99);

    heatherruthcreative
    Participant

    Hi there, I did add this to the functions.php of my child theme, but it did not work (see link for code screenshot in private section)

     

    Any other thoughts?

    Solution for this topic

    Could you please try using below CSS code instead of above shared?

     

    function add_pricing_button_custom_scripts(){ ?>
    	<script type="text/javascript">
    		jQuery(document).ready(function($){
    			$("#page-container .sh-pricing-content-center a.sh-pricing-button").attr("target","_blank");
    		});
    	</script>
    <?php }
    add_action('wp_footer', 'add_pricing_button_custom_scripts', 99);

    heatherruthcreative
    Participant

    That worked wonderfully!!  Thank you!!

    You are most welcome here 🙂

Viewing 8 posts - 1 through 8 (of 8 total)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form