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.
- Temat ‘Problem z functions.php’ jest zamknięty na nowe odpowiedzi.