• Hi.

    I’m getting crazy with it. Tried everything, and even Digging into WordPress doesn’t help me.

    So, I don’t have the access to the Menu option, and the functions.php code is getting everywhere.

    My functions.php is :

    if ( function_exists( 'register_nav_menus' ) ) {
    	register_nav_menus(
    		array(
    		  'head_menu' => 'Header Menu',
    		  'foot_menu' => 'My Custom Footer Menu'
    		)
    	);
    }

    Any idea ?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter Braintrash

    (@braintrash)

    (The link is a screen capture for you to see the functions.php code spreading into all the admin.)

    Thread Starter Braintrash

    (@braintrash)

    ??

    Thread Starter Braintrash

    (@braintrash)

    Getting better:

    if ( function_exists( ‘register_nav_menu’ ) ) { register_nav_menu( ‘navigation’, ‘Navigation Menu’ ); }
    Warning: Cannot modify header information – headers already sent by (output started at /var/www/clients/client9/web7/web/wp-content/themes/ServiceCulturel/functions.php:3) in /var/www/clients/client9/web7/web/wp-login.php on line 354

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/clients/client9/web7/web/wp-content/themes/ServiceCulturel/functions.php:3) in /var/www/clients/client9/web7/web/wp-login.php on line 366

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/clients/client9/web7/web/wp-content/themes/ServiceCulturel/functions.php:3) in /var/www/clients/client9/web7/web/wp-includes/pluggable.php on line 693

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/clients/client9/web7/web/wp-content/themes/ServiceCulturel/functions.php:3) in /var/www/clients/client9/web7/web/wp-includes/pluggable.php on line 694

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/clients/client9/web7/web/wp-content/themes/ServiceCulturel/functions.php:3) in /var/www/clients/client9/web7/web/wp-includes/pluggable.php on line 695

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/clients/client9/web7/web/wp-content/themes/ServiceCulturel/functions.php:3) in /var/www/clients/client9/web7/web/wp-includes/pluggable.php on line 897`

    You will have replace the functions.php as ones you get parse error nothing will work until you replace theme functions.php

    Thread Starter Braintrash

    (@braintrash)

    Thank you very much, it’s way better.

    But still, there’s something smelling wrong out there… ??

    https://www.culture.paris-sorbonne.fr/

    Looks like the problem lies in your theme.

    Thread Starter Braintrash

    (@braintrash)

    My header :
    [Code moderated as per the Forum Rules. Please use the pastebin]

    My functions.php:
    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter Braintrash

    (@braintrash)

    I followed all tutorials, and still don’t understand why I get this problem.

    Looks like you have this code in header.php can you paste the header.php file in https://wordpress.pastebin.com and paste url here.

    register_nav_menus(
          array(
                   'header-menu' => __( 'Header Menu' ),
                   'footer-menu' => __( 'Footer Menu' ),
                 )
           );
    function header_fallback() {
                  echo '<div class="sf-menu-wrapper group"><ul class="sf-menu">';
                  wp_list_pages('title_li=');
                  echo '</ul></div>';
    }
    function footer_fallback() {
                  echo '<div id="footer-nav-wrapper" class="group"><ul id="footer-nav">';
                  wp_list_pages('depth=1&title_li=');
                  echo '</ul></div>';
    Thread Starter Braintrash

    (@braintrash)

    If this are functions then need to be in functions.php file not header.php

    Thread Starter Braintrash

    (@braintrash)

    I don’t get it.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Menu not showing in appearance’ is closed to new replies.