-
AuthorPosts
-
November 2, 2013 at 7:02 pm #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,
LeifNovember 4, 2013 at 3:16 am #184102Hey 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,
IsmaelNovember 7, 2013 at 7:47 pm #185787Hi 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!
-LeifNovember 8, 2013 at 3:47 pm #186175Hey!
You can find iconlist.php file inside wp-content\themes\enfold\config-templatebuilder\avia-shortcodes folder in your WordPress theme directory
Best regards,
YigitJuly 10, 2014 at 9:54 pm #289738Hello! 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!
July 10, 2014 at 11:29 pm #289780Hey!
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/67209750Cheers!
YigitJuly 11, 2014 at 10:38 pm #290287Great! Thanks for the quick response :)
-
AuthorPosts
- The topic ‘Clickable icons in icon list?’ is closed to new replies.