New template problems
-
Hi,
Joomla user – trying to migrate to WordPress.
Designing a theme from scratch.
Managed to widget enable the theme – ! am trying to have 2 dynamic sidebars – carefully read various tutorials.
Currently stuck here
‘Fatal error: Call to undefined function: get_sidebar2() in /home/sites/wrightplace.co.uk/public_html/wordpress/wp-content/themes/wp2/index.php on line 14’
Line 14 in index reads ‘<?php get_sidebar2(); ?>’
sidebar2.php reads
‘ <div id=”sidebar2″>
<?ph if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar(‘sidebar2’) ) : ?>
<?php endif; ?>
</div>’functions.php reads
<?php
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(‘name’=>’sidebar1’,
‘before_widget’ => ”,
‘after_widget’ => ”,
‘before_title’ => ‘<h4>’,
‘after_title’ => ‘</h4>’,
));
register_sidebar(array(‘name’=>’sidebar2’,
‘before_widget’ => ”,
‘after_widget’ => ”,
‘before_title’ => ‘<h4>’,
‘after_title’ => ‘</h4>’,
));
?>’Any ideas anyone, please/
Development site (very early stages – still to add more PHP, obviously) – http://wrightplace.co.uk/wordpress/
Cheers!
Mike
-
For sidebar2.php read
‘ <div id=”sidebar2″>
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar(‘sidebar2’) ) : ?>
<?php endif; ?>
</div>’ -
You’re in the wrong forum https://en.forums.wordpress.com/topic/please-read-me-first-before-posting?replies=1
Head over to http://wordpress.ORG/support
- The topic ‘New template problems’ is closed to new replies.