Unable to register homepage widgets

Community Forums Forums Design Tips and Tricks Unable to register homepage widgets

This topic is: resolved

This topic contains 6 replies, has 2 voices, and was last updated by  ellenstevens 1 year, 3 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #51986

    ellenstevens
    Participant
    Post count: 32

    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 Sections

    Thanks for your ideas!

    ellen

    http://ellenstevens.com/test/

    http://ellenstevens.com/test/
    #51989

    braddalton
    Participant
    Post count: 10254
    #52051

    ellenstevens
    Participant
    Post count: 32

    I’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?

    #52104

    braddalton
    Participant
    Post count: 10254

    You can also use the Genesis Layout Extra’s plugin as well.

    Another option is to hand code it.


    #52112

    ellenstevens
    Participant
    Post count: 32

    I’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’ => ”
    ));
    ?>

    #52115

    braddalton
    Participant
    Post count: 10254

    I 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.


    #52249

    ellenstevens
    Participant
    Post count: 32

    I’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:

    http://wpconnected.com/genesis-custom-home-page/

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Unable to register homepage widgets’ is closed to new replies.