can widgets be placed on the side?
-
hi there
am just wondering if widgets can be placed on the side of the spun theme? At the moment they appear at the bottom of the site.
thanks
polly
-
HI
you can use widget any where in the theme just by calling the function like
<?php dynamic_sidebar(‘widget name’); ?>
you can use your own widger name.Thanks
P5systemsHi P5systems
thanks for replying, as i’m a bit of a newbie I just wanted to check I understand your suggestion.
Within my child theme stylesheet I add :<?php dynamic_sidebar(‘widget name’); ?>
if widget name is clock then I would replace this in the above line?
Is this correct?thanks
Unfortunately it’s not that simple.
In general, to create a new sidebar, you’d do the following:
1) Register the sidebar in your child theme’s functions.php — you can see how this is done in the existing functions.php with register_sidebar()
2) Create a new sidebar file in your child theme, ie.sidebar-mynewsidebar.php
, and within it, call dynamic_sidebar(). You can see how this is done in the parent theme’ssidebar.php
file
3) Call the new sidebar in your template file(s) with get_sidebar( ‘mynewsidebar’ );
4) Style the new sidebar with CSS so it appears how you likeAlternatively, you could use CSS to take one of the existing footer sidebar(s) and move it/them to a different location in the theme.
Hope this helps!
Hi,
I tried to put a new sidebar on one side of the page, but I cannot find how to tell it the exact location where it should be displayed, in the .php file code and css (for example : on the left-top of such a frame, or/an within which frame…)
Can you specify more exactly in which .php file we should insert the sidebar, and in which part of the template (which <div>, for example) ?
Thanks a lot for you precious help !
You need to create your own thread here: http://wordpress.org/support/theme/spun#postform
You can always link back to this thread for reference.
- The topic ‘can widgets be placed on the side?’ is closed to new replies.