Tagged: x
-
AuthorPosts
-
July 28, 2016 at 3:00 pm #1107612
leowebParticipantI’m trying to make the Featured Box icons links to the appropriate pages (don’t want text). I saw someone posted a javascript solution. How do I implement that? Where do I add the js? What’s the latest version of that js? (I saw various version posted).
After I add the js script do I add links as in the text box in Cornerstone? Can I just edit the code in text ode? I would rather do that because when I save changes in Cornerstone os messes otehr things up. I don’t really need it or want it.
I tried wrapping them in href tags and that works but messes up other formatting.
Thanks for the help!
Matt
July 28, 2016 at 3:16 pm #1107633
JoaoModeratorHi there,
Make sure that you will utilise the link option of the feature box. This code will simply transfer the link to the icon.
Add this code at Admin > Appearance > Customizer > Custom > Javascript :
jQuery ( function( $ ) { $('.x-feature-box-text a:last-child').each( function() { $( this ).parent().parent().parent().find('.x-feature-box-graphic-inner i').wrap( '<a href="' + $( this ).attr('href') + '"></a>' ); $( this ).remove(); } ); } );Hope that helps
Joao
October 24, 2016 at 11:35 pm #1229313
Pablo FParticipantHello,
As I can see this feature has been requested many times at the forum since months ago, and you haven´t implemented it yet.
This is a must as it doesn´t make any sense that you put a big icon that could not be clickable and you must place a secondary button or text for the link. It´s wrong in terms of ergonomics.
Anyway, could you please tell me how to make the “Open link in new window” option with the previous jQuery code?
Regards.
October 25, 2016 at 3:31 am #1229490
Paul RModeratorHi Pablo,
I will submit this to our web development team as a feature request.
With regards to opening a new window, you can change the code to his.
jQuery ( function( $ ) { $('.x-feature-box-text a:last-child').each( function() { $( this ).parent().parent().parent().find('.x-feature-box-graphic-inner i').wrap( '<a target="_blank" href="' + $( this ).attr('href') + '"></a>' ); $( this ).remove(); } ); } );Hope that helps
October 25, 2016 at 3:41 am #1229504
Pablo FParticipantHi Paul,
Thank you for your help.
Is there any way to get the “Open link in new window” variable from the Cornerstone Feature Box element, and use its current value instead overriding it with target=”_blank” in all the cases?
October 25, 2016 at 4:54 am #1229566
ChristianModeratorThat is technically possible but implementing or giving a solution here would be quite involved so further customizations from here would be getting in to custom development which falls outside the scope of our support. You might want to contact our trusted partners who caters X setup and customization needs. Please see https://community.theme.co/custom-development/
Thank you for understanding.
October 25, 2016 at 5:00 am #1229576
Pablo FParticipantHi Christian,
In that case, consider to update the Featured Box icon to work as linkable, please.
Anyway, it´s not the first time that you answer the “ask for a developer” sentence for such basic and mostly requested features. Think about in some cases our suggestions are knowledge to improve X as we are involving as customers but as testers too for your convenience.
Kind Regards.
October 25, 2016 at 5:39 am #1229611
Paul RModeratorHi Pablo,
We can assure you this is now listed in our feature request list.
All of these items are discussed with our team internally and prioritized based on the amount of interest a particular feature might receive. Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1107612 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
