A simple question about Functions.php file :)
-
Hi Everyone π
Sorry for bothering just have a small question!
I want to use multiple sidebars which I know how to do it and I also want to use “array” to put css commands for the widgets and I know how to do that also !
But I don’t know how to put both together :
For multiple sidebars I use :
<?php
if ( function_exists(‘register_sidebars’) )
register_sidebars(2);
?>And for array I’m using :
<?php
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘before_widget’ => ”,
‘after_widget’ => ”,
‘before_title’ => ‘<h3>’,
‘after_title’ => ‘</h3>’,
));
?>But I don’t know how to put more sidebars with array code….where do I put the number of sidebars in this code :
<?php
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘before_widget’ => ”,
‘after_widget’ => ”,
‘before_title’ => ‘<h3>’,
‘after_title’ => ‘</h3>’,
));
?>??
Thanks, and where can I find some more reference for these array codes ?
Regards
The topic ‘A simple question about Functions.php file :)’ is closed to new replies.