Wsparcie » Motywy » Problem z functions.php

  • Witam posiadam taki problem:

    Fatal error: Call to undefined function add_theme_support() in /home/michal85/domains/city-system.pl/public_html/wp-content/themes/newspapertimes/functions.php on line 1056

    Linijka 1056 to:

    add_theme_support( 'nav-menus’ );

    if ( function_exists( 'wp_nav_menu’ ) ){
    if (function_exists(’add_theme_support’)) {
    add_theme_support(’nav-menus’);
    add_action( 'init’, 'register_my_menus’ );
    function register_my_menus() {
    register_nav_menus(
    array(
    'main-menu’ => __( 'Top Menu’ )
    ) ); }
    register_nav_menus( array(
    'second’ => __( 'Main Menu’, 'second’ ),
    ) ); register_nav_menus( array(
    'fourth’ => __( 'Secondory Menu’, 'fourth’ ),
    ) );
    register_nav_menus( array(
    'third’ => __( 'Footer Menu’, 'third’ ),
    ) );
    }
    }

    a to ogólnie:http://www.city-system.pl
    Instalacja ogólna WordPress poszła ok i standardowy szablon załadowało lecz po wrzuceniu nowego szablony portalu informacyjnego „newspapertimes”
    są krzaki.

    Wersja instalacyjna to wordpress-pl-2-8-4-xxl a spolszczenie 3-3

    Pomoże mi ktoś? dodaje ze jestem troszkę laik w PHP i ogólnie WordPress.

Viewing 1 replies (of 1 total)
  • zobacz tak:

    add_action( 'after_setup_theme', 'xxx' );
    function xxx()
    {
        add_theme_support( 'nav-menus' );
    }

    ale jeżeli używasz:

    Wersja instalacyjna to wordpress-pl-2-8-4-xxl

    to to nie zadziała, add_theme_support jest dostępne od wersji 2.9

Viewing 1 replies (of 1 total)
  • Temat ‘Problem z functions.php’ jest zamknięty na nowe odpowiedzi.