badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Suggestion: ThemeHorse:Services – Icons should be links

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #10901
    dedicatedmanager
    Participant

    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;}

    #10913
    IcedQuick
    Participant

    For 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/

    #10932

    Thanks for sharing a bit information with us @IcedQuick and thanks @dedicatedmanager for giving suggestion. We will think about it on upcomming version.
    Thank you

    #12423
    Nikkie
    Participant

    Hi,

    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?

    #12432

    Hi 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!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.