Hallo Leute
Nach meinen Umzug zu 1&1 habe ich nun ein Problem.
Ich bekommen folgenden Fehler angezeigt und wiess nicht genau was zu machen ist
Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/22/d746530162/htdocs/test/wp-content/themes/basel/inc/theme-setup.php on line 188
Warning: A non-numeric value encountered in /homepages/22/d746530162/htdocs/test/wp-content/themes/basel/inc/styles.php on line 20
$footer_layout = basel_get_opt( 'footer-layout' );
$footer_config = basel_get_footer_config( $footer_layout );
if( count( $footer_config['cols'] > 1 ) ) {
foreach ( $footer_config['cols'] as $key => $columns ) {
$index = $key + 1;
register_sidebar(
array(
'name' => 'Footer Column ' . $index,
'id' => 'footer-'.$index,
'description' => 'Footer column',
'class' => '',
'before_widget' => '<div id="%1$s" class="footer-widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="widget-title">',
'after_title' => '</h5>'
Den Fehler könnt ihr auch unter www..zwerg-schmuck.de Live sehen.
Gruß aus Berlin
Nach meinen Umzug zu 1&1 habe ich nun ein Problem.
Ich bekommen folgenden Fehler angezeigt und wiess nicht genau was zu machen ist
Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/22/d746530162/htdocs/test/wp-content/themes/basel/inc/theme-setup.php on line 188
Warning: A non-numeric value encountered in /homepages/22/d746530162/htdocs/test/wp-content/themes/basel/inc/styles.php on line 20
$footer_layout = basel_get_opt( 'footer-layout' );
$footer_config = basel_get_footer_config( $footer_layout );
if( count( $footer_config['cols'] > 1 ) ) {
foreach ( $footer_config['cols'] as $key => $columns ) {
$index = $key + 1;
register_sidebar(
array(
'name' => 'Footer Column ' . $index,
'id' => 'footer-'.$index,
'description' => 'Footer column',
'class' => '',
'before_widget' => '<div id="%1$s" class="footer-widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="widget-title">',
'after_title' => '</h5>'
Den Fehler könnt ihr auch unter www..zwerg-schmuck.de Live sehen.
Gruß aus Berlin
Kommentar