changing navigation from functions.php?
-
Hi there,
I have the following code in my parent functions.php file that I would like to change:
add_action( 'bizberg_top_header', 'bizberg_top_header_pro' ); function bizberg_top_header_pro(){ $top_header_status = bizberg_get_theme_mod( 'top_header_status' ); $top_header_status_mobile = bizberg_get_theme_mod( 'top_header_status_mobile' ); /** * @param $top_header_status (boolean) * if true, don't show the top header */ if( $top_header_status == true ){ return; } ?> <div id="top-bar" class="<?php echo esc_attr( $top_header_status_mobile ? 'enable_top_bar_mobile' : '' ); ?>"> <div class="container"> <div class="row"> <div class="top_bar_wrapper"> <div class="col-sm-4 col-xs-12"> <?php bizberg_get_header_social_links(); ?> </div> <div class="col-sm-8 col-xs-12"> <div class="top-bar-right"> <ul class="infobox_header_wrapper"> <?php bizberg_get_infobox_header(); ?> </ul> </div> </div> </div> </div> </div> </div> <?php }What is the best way to modify this code? If I paste the above code in my child theme function.php file, it creates an error.
Or can I simple edit it in the parent functions.php file?
Any suggestions would be great, thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘changing navigation from functions.php?’ is closed to new replies.