WordPress.org

Ready to get started?Download WordPress

Forums

Need function to group widgets.. pls read (2 posts)

  1. sibble
    Member
    Posted 4 years ago #

    Ok, the why I'm doing this is long to explain so I'm just going to get to the how...

    This is how I need my widget markup output:

    • Widget
    • Widget
    • Widget
    • Widget
    • Widget
    • Widget

    Basically, I need the output to group widgets divisible by 3 (whether it's grouping by lists, divs or w/e. I just need to put a container around every 3 widgets.

    Is there a way to put a container around every 3 widgets?

    Thanks a lot!

  2. alchymyth
    Forum Moderator
    Posted 4 years ago #

    you could try and divide your sidebar into 'three sidebars' -
    http://codex.wordpress.org/Function_Reference/dynamic_sidebar -

    then wrap each 'sub'-sidebar into a div and style it with css to keep them apart, and only add three widgets into each 'sub'-sidebar.

    edit: another article:
    http://www.prelovac.com/vladimir/wordpress-theme-flexibility-with-dynamic-sidebars

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags