Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1138279

    kschmicker
    Participant

    I’ve searched the forum and tried putting in two sets of JS code, but neither worked for my website. I am not using X Theme, but I am using Cornerstone. One of the JS Code snippets I used is below. Anything else I can try?

    http://youngnichols.blackfrogdesigns.com/grief-healing/

    jQuery(document).ready(function($){
    $(‘.x-card-outer .x-face-content a.x-face-button’).each(function(){
    $(this).attr(‘target’, ‘_blank’ );
    });
    });

    #1138587

    Darshana
    Moderator

    Hi there,

    Try adding the following JavaScript code into your Customizer, Custom > JavaScript section.

    
    jQuery(document).ready(function($){
      $('.x-card-outer .x-face-content x-face-button').each(function(){
        $(this).attr('target', '_blank' );
      });
    });
    

    Hope that helps.

    #1246921

    villageenergy1
    Participant

    Hi Darshana,

    I pasted that into the customizer and hit save, but my card buttons are still not opening the links in a new tab. Have I pasted the attached code in correctly?

    #1246930

    Thai
    Moderator

    Hi @villageenergy1,

    In this case, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link login to your site
    – WordPress Admin username / Password

    Don’t forget to select Set as a private reply. This ensures your information is only visible to our staff.

    Thanks.