-
AuthorPosts
-
January 7, 2016 at 11:56 am #736192
emariocParticipantHi No My Test Site is http://CiprianoUSA.com – check the Services section… not link there – was trying alternatives but really want the features box!
January 7, 2016 at 5:02 pm #736583
RadModeratorHi 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!
April 3, 2016 at 10:20 am #864734
DagaloniParticipantThanks! The script works for me 😀
April 3, 2016 at 10:11 pm #865289
LelyModeratorHi Dagaloni,
Thank you for letting us know that it works for you.
Cheers!
XApril 5, 2016 at 5:19 pm #868274
Michael Burton, CFP®ParticipantThe 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!
April 6, 2016 at 5:40 am #868962
ChristianModeratorYou’re welcome. Glad we could help. 🙂
April 27, 2016 at 4:47 pm #903085
suzannereidParticipantI 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?
April 28, 2016 at 6:23 am #903889
ZeshanMemberHi 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!
April 28, 2016 at 10:47 am #904286
suzannereidParticipantHm..that seemed to put the text back and not link the photo. :/
April 29, 2016 at 12:05 am #905186
Paul RModeratorHi,
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
April 29, 2016 at 11:07 pm #906463
suzannereidParticipantAwesome! that worked perfectly. Thank you!!
April 30, 2016 at 12:05 pm #907049
ThaiModeratorGlad it worked 🙂
If you need anything else please let us know.
June 24, 2016 at 9:45 am #1058130
ApricitymediaParticipantHi, 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.
June 24, 2016 at 10:24 am #1058190
JoaoModeratorHi 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
July 6, 2016 at 8:05 am #1074699
bfbixfixParticipantHi,
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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-628439 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
