Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #253542

    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!

    #253782

    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

    #253925

    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.

    #255046

    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

    #255254

    Got it! Thank you so much!!!!

    #255454

    Hey!

    I hope it worked. If you have any questions, let us know.

    Cheers!
    Ismael

    #255897
    This reply has been marked as private.
    #256922

    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

    #257769

    Got it, did it. Thank you very much!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Submenu color doesn't change, and would like to show header text instead of logo’ is closed to new replies.