- This topic has 4 replies, 4 voices, and was last updated 9 years, 9 months ago by Theme Horse Support Team.
-
AuthorPosts
-
June 2, 2014 at 10:28 pm #10901dedicatedmanagerParticipant
You should make the icons in the ThemeHorse:Services widget links. People often expect to be able to click on the icon; especially on a mobile device.
I was able to get this accomplished without editing the theme. I had to put the following in the theme options “custom CSS” section. And YES… I did escape the style sheet, insert javascript and then re-enable the the style sheet!
Oh… and I guess that is another suggestion… please add a “custom Javascript” section in addition to the “Custom CSS” section in the theme options!
</style>
<script>
link = [];jQuery(document).ready(function() {
jQuery(“#interface_service_widget-2 .column .one-fourth”).each(function( index) {
link[index] = jQuery(this).find(‘a’).first().attr(‘href’) ;
jQuery(this).find(‘.service-item’).click(function(event) {
event.preventDefault();
window.location = link[index];
});
});
});
</script>
<style>
#interface_service_widget-2 .column .one-fourth .service-item {cursor: pointer; cursor: hand;}June 3, 2014 at 4:30 am #10913IcedQuickParticipantFor the first one – you will need edit the themes files to do this.
Second one – I recommend installing Google Tag Manager – the most simplest way to inject JS onto your page. The best plugin for WordPress is http://www.duracelltomi.com/google-tag-manager-for-wordpress/
June 3, 2014 at 3:27 pm #10932Theme Horse Support TeamKeymasterThanks for sharing a bit information with us @IcedQuick and thanks @dedicatedmanager for giving suggestion. We will think about it on upcomming version.
Thank youJuly 24, 2014 at 7:31 am #12423NikkieParticipantHi,
its not working for me, but this function will be very usefull for mobile and tablet users. Does anyone know how can i change a code to make service widget icon a link?
July 24, 2014 at 11:02 am #12432Theme Horse Support TeamKeymasterHi Nikkie,
We have designed our theme this way. You need code customization and if we found any solution then we will let you know.
Thank you! -
AuthorPosts
- You must be logged in to reply to this topic.