-
AuthorPosts
-
July 6, 2016 at 8:19 am #1074720
ChristopherModeratorHi there,
Please add this as well :
jQuery(".feature-box-graphic-inner a").attr("target","_blank");Hope it helps.
October 16, 2016 at 9:20 am #1218169
flacnvinylParticipantI applied this code…
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(); }); });It helped to make the icon clickable. Can we modify this to make the title clickable as well?
October 16, 2016 at 3:24 pm #1218474
flacnvinylParticipantThis reply has been marked as private.October 16, 2016 at 5:26 pm #1218555
RadModeratorHi there.,
Which title? That wraps the entire box and it includes the title and any content within in. Unless your title is outside that box or in another column/section, then that’s not possible.
Thanks!
October 16, 2016 at 6:08 pm #1218583
flacnvinylParticipantThis reply has been marked as private.October 16, 2016 at 6:10 pm #1218585
flacnvinylParticipantThis reply has been marked as private.October 16, 2016 at 10:11 pm #1218846
RadModeratorHi there,
Thanks, please change it to this
jQuery(function($) { $('.x-feature-box-text a:last-child').each(function() { $(this).closest('.x-feature-box').wrap('<a href="' + $(this).attr('href') + '"></a>'); $(this).remove(); }); });cheers!
October 17, 2016 at 7:34 am #1219284
flacnvinylParticipantThat worked! I don’t suppose we can allow the text description areas to NOT get wrapped by the url? We only want the icon and the title get wrapped.
October 17, 2016 at 8:03 am #1219309
Paul RModeratorIn that case, kindly change the code to this.
jQuery(function($) { $('.x-feature-box-text a:last-child').each(function() { $(this).closest('.x-feature-box .x-feature-box-graphic').wrap('<a href="' + $(this).attr('href') + '"></a>'); $(this).closest('.x-feature-box .x-feature-box-title').wrap('<a href="' + $(this).attr('href') + '"></a>'); $(this).remove(); }); });Hope that helps.
October 17, 2016 at 8:11 am #1219312
flacnvinylParticipantWhen we applied that code it removed all links. Nothing is clickable. Icon/title/description, nothing is a link.
October 17, 2016 at 8:44 am #1219336
Paul RModeratorHi,
Sorry, please change it to this.
jQuery(function($) { $('.x-feature-box-text a:last-child').each(function() { $(this).closest('.x-feature-box').find('.x-feature-box-graphic').wrap('<a class="my-link" href="' + $(this).attr('href') + '"></a>'); $(this).closest('.x-feature-box').find('.x-feature-box-title').wrap('<a class="my-link" href="' + $(this).attr('href') + '"></a>'); $(this).remove(); }); });Then add this in Custom > Edit Global CSS in the customizer
.my-link { display:table-cell; }Hope that helps.
October 17, 2016 at 10:35 am #1219475
flacnvinylParticipantPERFECT! Thank you!
October 17, 2016 at 11:35 am #1219553
JoaoModeratorGlad to hear it,
Joao
October 18, 2016 at 3:57 pm #1221344
flacnvinylParticipantThis reply has been marked as private.October 18, 2016 at 8:50 pm #1221694
flacnvinylParticipantThis reply has been marked as private. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-628439 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
