Community Forums › Forums › Archived Forums › Design Tips and Tricks › Unable to register homepage widgets
Tagged: homepage, Prose, Register Widgets
- This topic has 6 replies, 2 voices, and was last updated 10 years, 9 months ago by ellenstevens.
-
AuthorPosts
-
July 23, 2013 at 12:15 am #51986ellenstevensMember
Using Prose.
I've been trying various methods of writing code to register widgets for my homepage, however none of the widgets are appearing.
Any ideas for creating widgets for:
- Homepage Slider
- 3 Mid-Homepage Widget SectionsThanks for your ideas!
ellen
http://ellenstevens.com/test/
http://ellenstevens.com/test/July 23, 2013 at 12:52 am #51989Brad DaltonParticipantJuly 23, 2013 at 7:58 am #52051ellenstevensMemberI've tried this. It doesn't work correctly. 1) it adds an additional menu bar, 2) it doesn't offer the sidebar locations I'm looking for, 3) the sidebars it does offer don't appear.
Any other ideas?
July 23, 2013 at 12:04 pm #52104Brad DaltonParticipantYou can also use the Genesis Layout Extra's plugin as well.
Another option is to hand code it.
July 23, 2013 at 12:28 pm #52112ellenstevensMemberI've tried the plugins and they don't seem to be working.
I've also tried to hardcode registering the sidebar widgets by placing code into Custom Functions. This doesn't seem to work, either. Can you see if there is something missing with the code?
/* Register Widgets */
register_sidebar( array( 'id' => 'home-top',
'name' => __( 'Home Top', 'prose' ),
'description' => __( 'This is the homepage top section.', 'prose' ),
'before_widget' => '',
'after_widget' => ''
));register_sidebar( array(
'id' => 'home-mid-l',
'name' => __( 'Home MidPage Left', 'prose' ),
'description' => __( 'This is the home mid-page left section.', 'prose' ),
'before_widget' => '',
'after_widget' => ''
));register_sidebar( array(
'id' => 'home-mid-m',
'name' => __( 'Home MidPage Middle', 'prose' ),
'description' => __( 'This is the home mid-page middle section.', 'prose' ),
'before_widget' => '',
'after_widget' => ''
));register_sidebar( array(
'id' => 'home-mid-r',
'name' => __( 'Home MidPage Right', 'prose' ),
'description' => __( 'This is the home mid-page right section.', 'prose' ),
'before_widget' => '',
'after_widget' => ''
));register_sidebar( array(
'id' => 'home-bottom',
'name' => __( 'Home Bottom', 'prose' ),
'description' => __( 'This is the homepage bottom section.', 'prose' ),
'before_widget' => '',
'after_widget' => ''
));
?>July 23, 2013 at 12:38 pm #52115Brad DaltonParticipantI have tested these plugins and they both work.
Where did you get the code from? Its not complete and won't work unless you also have an action in a custom function to hook in the widgets.
July 24, 2013 at 10:40 am #52249ellenstevensMemberI'm sure the plugins work, but they don't have what I am looking for. I did figure out the problem. Apparently in Prose, the Custom Functions option does not work for registering sidebars.
Here is a great workaround for anyone else trying to figure this out:
-
AuthorPosts
- The topic ‘Unable to register homepage widgets’ is closed to new replies.