Hello everyone, please I would like some help.
I wish to remove the logo and just show the website header text and maybe the tagline instead.
I wish to make this change on the child theme not the parent.
Also I managed to change the navigation text color but the sub menu color I can’t figure.
Thank you all!
Hey Marc!
Thank you for using the theme!
You can add something like this on functions.php if you want a text on the header in place of the logo:
add_filter('avf_logo_final_output', 'avf_text_logo_final_output');
function avf_text_logo_final_output($logo) {
$link = apply_filters('avf_logo_link', home_url('/'));
$logotext = "THIS IS MY LOGO";
$subtext = "THIS IS THE SUBTEXT";
$subtext = "<span class='subtext'>$subtext</span>";
$logo = "<h1 class='logo bg-logo'><a href='".$link."'>".$logotext."$subtext</a></h1>";
return $logo;
}
Replace the $logotext and the $subtext. I hope that helps.
Cheers!
Ismael
Ismael thank you for your help! If I make this change, do I have to make it on the child theme or the parent theme? I wouldn’t want an update to lose this custom change.
Also, when you say “Replace the $logotext and the $subtext”, do I replace the $logotext with the text I want to input?
Could I do this from the general setting in WP? I just wanted to use the regular settings.
Or if there is a faster way to add a custom code to the quick css instead from the Enfold style settings.
Thank you again! I appreciate it.
Hi!
You can add it to functions.php file of you child theme. Ismael means that you should simply change the text inside logotext and subtext
Regards,
Yigit
Got it! Thank you so much!!!!
Hi!
You just need to select “Set manually” from the link dropdown box. Another field will fade in where you can insert the url manually. If it doesn’t work please install the latest theme version (Enfold 2.7) and try to deactivate all third party plugins – maybe a plugin conflicts with the theme.
Best regards,
Peter
Got it, did it. Thank you very much!