Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #881704
    Rifft
    Participant

    Hey guys,
    One more time, thanks a for your work and your support. This theme keep surprising me.
    You will find in the next post my credentials.

    I would like to delete the link in Creative CTA and Card.

    #1 – Creative card – I’m using the creative CTA just for the animation and i would like to delete the link to make it unclickable. (first row – three colors blocks)

    #2 – I’m using the card to introduce our mobile application, just above the footer. For now, our app is not available so i use the back button to say “Coming soon” but there is a link on it. For now, i would like to desactivate it and put it back when i’ll have a link.
    One solution could be that the “coming soon” text could appears as back title or back text. But because i modified the card to no show the title and text in the front, i’m kind of lost and have no idea about how to do that.

    Thanks for your help !

    #881707
    Rifft
    Participant
    This reply has been marked as private.
    #882063
    Zeshan
    Member

    Hi there,

    Thanks for writing in!

    #1: To disable the link, first add a custom CSS class of disable-link to each of your Creative CTA elements under Class field of its settings (see: http://prntscr.com/7qeolc). Then add following code under Custom > JavaScript in the Customizer:

    jQuery(document).ready(function($) {
      $('a.disable-link').click(function(e){e.preventDefault();})
    });
    

    #2: Just like #1, add a custom CSS class of disable-link under each of your card element and then add following code under Custom > JavaScript in the Customizer:

    jQuery(document).ready(function($) {
      $('.disable-link .x-face-button').click(function(e){e.preventDefault();})
    });
    

    Thank you!

    #883897
    Rifft
    Participant

    It works perfectly, thanks a lot guys !

    #884464
    Jack
    Keymaster

    You’re most welcome!

  • <script> jQuery(function($){ $("#no-reply-881704 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>