Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #196827

    Is it possible to make the icons in the icon list and icon boxes links? I know the titles and descriptions can be links, but I want the actual icon to be a link as well. Everyone I show the site to tries to click on the icons.

    #197207

    Hey davisar!

    Here’s a workaround: https://kriesi.at/support/topic/linking-the-icon-box-icon/

    Regards,
    Josue

    #197321
    This reply has been marked as private.
    #197324

    Hey!

    Modify the code to this:

    jQuery("article.iconbox").each(function(){ 
        var theLink = jQuery(this).find("a").attr("href");
    	jQuery(this).on("click", function(){
    		window.location.href = theLink;
    	});
    });

    Regards,
    Josue

    #197326

    I already added that to the avia.js

    #197330

    Hi!

    I modified the code a bit, now it will target all iconboxes regardless if they are in the homepage or not.

    Regards,
    Josue

    #197336
    This reply has been marked as private.
    #197345

    Hi!

    Add this too:

    jQuery(".iconlist_icon").each(function(){ 
        var theLink = jQuery(this).siblings("article").find(".iconlist_title a").attr("href");
    	if(theLink) {
            jQuery(this).on("click", function(){
    		     window.location.href = theLink;
    	    });
        }
    });

    Regards,
    Josue

    #197347

    Perfect! Everything is working now. Thank you!

    #197350

    You are welcome, glad we could help :)

    Regards,
    Josue

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Add Links to Icon List and Icon Boxes’ is closed to new replies.