Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #183747

    As much as I love the icon list, it seems totally counter-intuitive to not have the icons clickable. I imagine myself as a site visitor and trying to click the icon, as if its a button, and nothing happening and so giving up. Is there a way to change that?
    Thanks,
    Leif

    #184102

    Hey leifhansen!

    Edit config-templatebuilder > avia-shortcodes > iconlist.php, find this code:

    $output .= "<div class='iconlist_icon avia-font-".$atts['font']."'><span class='iconlist-char' {$display_char}></span></div>";

    Replace it with:

    $output .= "<a href='{$atts['link']}'><div class='iconlist_icon avia-font-".$atts['font']."'><span class='iconlist-char' {$display_char}></span></div></a>";

    Remove browser cache then reload the page. The link will be the same as the title link.

    Regards,
    Ismael

    #185787

    Hi Ismael,
    Thanks for the reply.
    I’m not sure which file you mean in your description…I can find config-templatebuilder.php –but I don’t understand the next two, or where to find them.

    And are you saying that the result of this change will be to make the icons clickable?

    Thanks!
    -Leif

    #186175

    Hey!

    You can find iconlist.php file inside wp-content\themes\enfold\config-templatebuilder\avia-shortcodes folder in your WordPress theme directory

    Best regards,
    Yigit

    #289738

    Hello! I’ve edited the iconlist.php but it looks like now I just get cursors when I hover over the icons. My original code looked a little different though:

    $output .= “<div class=’iconlist_icon avia-font-“.$icon_el[‘font’].”‘><span class=’iconlist-char’>{$display_char}</span></div>”;

    That I then replaced with:

    $output .= “<div class=’iconlist_icon avia-font-“.$atts[‘font’].”‘><span class=’iconlist-char’ {$display_char}></span></div>“;

    I’m thinking it might have something to do with the “.$icon_el[‘font’].”

    any thoughts? Thanks!

    #289780

    Hey!

    You no longer need to modify the file to make icons clickable – http://i.imgur.com/2QnpNTg.png
    Please update Enfold to the latest version 2.9.1 via FTP – http://vimeo.com/67209750

    Cheers!
    Yigit

    #290287

    Great! Thanks for the quick response :)

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Clickable icons in icon list?’ is closed to new replies.