Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #83742
    #83743

    I turned on a secondary menu but it looks funny and has a label I can’t edit. need a real solution for this.

    #83762
    Mahesh
    Keymaster

    Hi @dallaseventaudio,

    It is a bug in Clean Box.
    Either you have to wait for the update or for quick fix you have to create the child theme and modify some functions. You can find more details on creating child theme HERE. In child theme’s functions.php add the following codes.

    function clean_box_primary_menu() {
        $options  = clean_box_get_theme_options();
    	?>
        <div id="fixed-header-top">
            <div class="wrapper">
                <div id="mobile-primary-menu" class="mobile-menu-anchor fixed-primary-menu">
                    <a href="#mobile-primary-nav" id="primary-menu-anchor" class="genericon genericon-menu">
                        <span class="mobile-menu-text screen-reader-text">
                            <?php esc_html_e( 'Menu', 'clean-box' ); ?>
                        </span>
                    </a>
                </div><!-- #mobile-primary-menu -->
    
                <?php
                    $logo_alt = ( '' != $options['logo_alt_text'] ) ? $options['logo_alt_text'] : get_bloginfo( 'name', 'display' );
    
                    if ( isset( $options[ 'logo_icon' ] ) &&  $options[ 'logo_icon' ] != '' &&  !empty( $options[ 'logo_icon' ] ) ){
                         echo '<div id="logo-icon"><a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" rel="home">
                            <img src="' . esc_url( $options['logo_icon'] ) . '" alt="' . esc_attr( $logo_alt ). '">
                        </a></div>';
                    }
                ?>
    
               <nav class="nav-primary search-enabled" role="navigation">
                    <h1 class="assistive-text"><?php _e( 'Primary Menu', 'clean-box' ); ?></h1>
                    <div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'clean-box' ); ?>"><?php _e( 'Skip to content', 'clean-box' ); ?></a></div>
                    <?php
                        if ( has_nav_menu( 'primary' ) ) {
                            $clean_box_primary_menu_args = array(
                                'theme_location'    => 'primary',
                                'menu_class'        => 'menu clean-box-nav-menu',
                                'container'         => false
                            );
                            wp_nav_menu( $clean_box_primary_menu_args );
                        }
                        else {
                            wp_page_menu( array( 'menu_class'  => 'page-menu-wrap' ) );
                        }
    
                        ?>
                </nav><!-- .nav-primary -->
    
                <div id="header-toggle">
                    <a href="#header-toggle-sidebar" class="genericon"><span class="header-toggle-text screen-reader-text"><?php _e( 'Show Header Sidebar Content', 'clean-box' ); ?></span></a>
                </div>
    
                <div id="header-toggle-sidebar" class="widget-area displaynone" role="complementary">
                    <?php if ( is_active_sidebar( 'header-toggle' ) ) { ?>
                        <?php dynamic_sidebar( 'header-toggle' ); ?>
                    <?php
                    }
                    else { ?>
                        <section class="widget widget_search" id="header-serach">
                            <?php get_search_form(); ?>
                        </section>
    
                        <?php
    
                        if ( '' != ( $clean_box_social_icons = clean_box_get_social_icons() ) ) { ?>
                            <section class="widget widget_clean_box_social_icons" id="header-social-icons">
                                <div class="widget-wrap">
                                    <?php echo $clean_box_social_icons; ?>
                                </div>
                            </section>
                        <?php
                        }
                    }
                    ?>
                </div><!-- #header-toggle-sidebar -->
            </div><!-- .wrapper -->
        </div><!-- #fixed-header-top -->
        <?php
    }

    Regards,
    Mahesh

    #83807

    thank you Mahesh

    #83861
    Mahesh
    Keymaster

    Hi @dallaseventaudio,

    Thank you for your appreciation.
    Have a good day!

    Regards,
    Mahesh

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘no menu on mobile’ is closed to new replies.