-
AuthorPosts
-
September 24, 2015 at 11:53 am #508311
Hey!
That shouldn’t be a problem if you register it with a code like this:
add_filter('avf_default_icons','avia_replace_mobile_menu_icon', 10, 1); function avia_replace_mobile_menu_icon($icons) { $icons['mobile_menu'] = array( 'font' =>'font_name_here', 'icon' => 'ue811'); return $icons; }
You can define your font name there and have it have the same charcode.
Regards,
JosueSeptember 24, 2015 at 1:41 pm #508426hmm, isn´t that jut dor the mobile menu icon.
I can change the mobile_menu icon with your code.I need to change the “star” symbol which has the charactercode ue808
September 26, 2015 at 12:20 am #509322That code was meant to be seen as an example, if you want to change
supersticky
then it would be:add_filter('avf_default_icons','avia_replace_mobile_menu_icon', 10, 1); function avia_replace_mobile_menu_icon($icons) { $icons['supersticky'] = array( 'font' =>'_font_name_here_', 'icon' => '_charcode_here_'); return $icons; }
September 26, 2015 at 1:54 pm #509496That is was I tried as well.
Ok know it is working in the Template editor. That´s good. I use CSS to make place some own icons.
There it isn´t working..icon-cancel::before {
content: “\e808”;
}
still the star is showing. – I think there is no solutionSeptember 26, 2015 at 2:04 pm #509499Hi,
Can you please create me a WordPress administrator account? post it here as a private reply.
Regards,
JosueSeptember 26, 2015 at 2:24 pm #509504Oh you will be shocked – the Enfold is completely Customiced.
September 26, 2015 at 8:59 pm #509575You forgot the link to the site.
October 28, 2015 at 7:58 pm #526368Hi there – I´m back!
I saw that I could remove the “supersticky icon” …. But now – the same Problem is to remove the “sticky”
This code won´t work::function avia_replace_mobile_menu_icon($icons) {
$icons[‘sticky’] = array( ‘font’ =>’star-empty’, ‘icon’ => ‘ue998’);return $icons;
}
add_filter(‘avf_default_icons’,’avia_replace_mobile_menu_icon’, 10, 1);October 28, 2015 at 11:17 pm #526448Hey!
Whats the site URL?
Best regards,
JosueOctober 29, 2015 at 8:56 am #526588Hi – you allready found a solution above. But know its not possible to place any new icon…
I think i have to insert the secondary iconfont external.October 29, 2015 at 11:21 pm #527211October 30, 2015 at 9:58 am #527270Sorry I deleted my new fonts. SO i tried to upload again new fontello fonts.
1. In my style css I like to handle the new icons for customiced templates:
.icon-related::before { content: "\e800"; } .icon-cancel:before { content: "\e808"; } .icon-techdetails::before { content: "\e930"; }
But tis code are allready set standard
2. in my functions.php I tried the code Line 156:
function avia_replace_mobile_menu_icon($icons) { $icons['supersticky'] = array( 'font' =>'star', 'icon' => 'ue999'); $icons['pinterest'] = array( 'font' =>'pinterest', 'icon' => 'ue998'); return $icons; } add_filter('avf_default_icons','avia_replace_mobile_menu_icon', 10, 1);
Nothoing helps! I´m at the End.
October 30, 2015 at 10:31 pm #527728Hey!
You need to set the font-family to the custom
i
s, try this:.icon-techdetails::before { content: "\e930"; font-family: "fontello"; }
Cheers!
JosueNovember 2, 2015 at 4:01 pm #528561OUH no not really?? – i just forget to set the Font-family??
Hell – sorry about that.And thank you very much for your help !!!
November 2, 2015 at 10:24 pm #528848You are welcome, glad to help :)
Regards,
JosueJuly 28, 2016 at 11:48 am #666131Hi Kriesi team.
Thank for the awesome theme (Enfold). I’ve tried to find a solution for my issue for a few hours now but I’m not sure I can manage it myself.
I have changed the “scrolldown” icon, that wsn’t difficult, I have just changed the icon number:
‘scrolldown’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue86f’),
I’m wondering if I can
a) change the colour of this icon
b) can I use a custom image instead of the icon (e.g. a png I made), and if so, how I add it to the code.Your help would be greatly appreciated as I really am lame with coding.
Thanks in advance.
July 30, 2016 at 5:14 pm #666834Hi,
Post a link to the Page where you have the toggle element.
Best regards,
JosueJuly 30, 2016 at 5:22 pm #666836Hi Josue,
Thanks for getting back to me. You can find the link to the site in question below. The icon I’d like to change is the down arrow right at the bottom of the first section (with the video background) of the page.Your help is much appreciated.
Best,
Matt
- This reply was modified 8 years, 4 months ago by equio.
July 30, 2016 at 5:37 pm #666842Hey!
Try adding this code to the Quick CSS:
#top .scroll-down-link:before { content: url(_LINK_TO_IMG_); }
Make sure the image is around 60×60.
Cheers!
JosueJuly 30, 2016 at 7:20 pm #666880Thank you, Josue,
I’ll try that and will get back to you.
Cheers
July 31, 2016 at 1:40 am #666919We looking forward to hearing from you :)
Regards,
JosueAugust 1, 2016 at 11:22 am #667190Hey Josue,
Thanks for your help, it worked like a charm.
Cheers,
e.
August 4, 2016 at 12:13 am #668316You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
- The topic ‘Replace toggle icon with another entypo-fontello font OR use a png’ is closed to new replies.