Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #736192
    emarioc
    Participant

    Hi No My Test Site is http://CiprianoUSA.com – check the Services section… not link there – was trying alternatives but really want the features box!

    #736583
    Rad
    Moderator

    Hi guys,

    Before we continue, I just like to differentiate the code mentioned on this thread.

    The code mentioned at #647252 is correct and there is no typo, it’s meant for feature box that uses icons. While the code mentioned at #686519 is correct too, but for images. But we can’t treat them all as images automatically by custom coding, so please choose which one fits and enhance it to your liking.


    @Emarioc
    , your feature box icon linking works, but you didn’t add proper links. It’s just linking to #, please add proper link and it should work.

    Thanks!

    #864734
    Dagaloni
    Participant

    Thanks! The script works for me 😀

    #865289
    Lely
    Moderator

    Hi Dagaloni,

    Thank you for letting us know that it works for you.

    Cheers!
    X

    #868274

    The javascript code worked like a charm for me. One thing novice users like me need to realize is that the link text still shows up in the Cornerstone Editor preview window. But if you open up a different browser (e.g. firefox if you’re editing in Chrome), then you can see/test right away that the link text is gone and the image is the link.

    Thanks again to the amazing ThemeCo support staff. You all rock!

    #868962
    Christian
    Moderator

    You’re welcome. Glad we could help. 🙂

    #903085
    suzannereid
    Participant

    I think i followed all the directions correctly (I added the code from comment #686519). and put text in the text section and a link in the href section but it still does not link. Any suggestions?

    http://easttexasorthodontics.com/new-patients/

    #903889
    Zeshan
    Member

    Hi there @suzannereid,

    Thanks for writing in!

    Please try this code instead:

    jQuery(function($) {
      $('.x-feature-box-text a:last-child').each(function() {
        $(this).closest('.x-feature-box').find('.x-feature-box-graphic-inner').wrap('<a href="' + $(this).attr('href') + '"></a>');
        $(this).remove();
      });
    });
    

    Hope this helps. 🙂

    Thank you!

    #904286
    suzannereid
    Participant

    Hm..that seemed to put the text back and not link the photo. :/

    #905186
    Paul R
    Moderator

    Hi,

    Upon checking, I can see the following error in the console.

    http://screencast.com/t/J0QqxmASHH

    Kindly copy and paste the code as it is.

    
    jQuery(function($) {
      $('.x-feature-box-text a:last-child').each(function() {
        $(this).closest('.x-feature-box').find('.x-feature-box-graphic-inner').wrap('<a href="' + $(this).attr('href') + '"></a>');
        $(this).remove();
      });
    });
    

    Thanks

    #906463
    suzannereid
    Participant

    Awesome! that worked perfectly. Thank you!!

    #907049
    Thai
    Moderator

    Glad it worked 🙂

    If you need anything else please let us know.

    #1058130
    Apricitymedia
    Participant

    Hi, just tried using this script and it does not work, i put the link in the HREF and Link text box and nothing becomes a link, it just makes the link text not appear. Any ideas?

    My site is http://apricitymedia.co.uk and the feature box I am currently trying is the one labelled branding design.

    #1058190
    Joao
    Moderator

    Hi There,

    Upon Checking your website the Icon is clickable and linking, would you mind providing more details about the issue?

    Also if you are not experiencing the same, please clean the cache of your Browser and test it again.

    Thanks

    Joao

    #1074699
    bfbixfix
    Participant

    Hi,

    this code works for me, too, but although the open in new window option is checked (on), the links doesn’t open in a new tab like it’s supposed to…can you help?

    thanks!

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