[wp-hackers] splitting dynamic_sidebar()
Christopher Ross
cross at thisismyurl.com
Thu Jul 21 15:31:18 UTC 2011
My worry is that the footer only has the width for three widgets, if somebody adds a fourth it will wrap but not always to the start of the second row.
For example if the widgets look like:
111111 222222 333333
111111 222222 333333
111111 222222 333333
The fourth widget will wrap like this:
111111 222222 333333
111111 222222 333333
111111 222222 333333
444444
444444
444444
But if the third widget is short, it'll wrap like this:
111111 222222 333333
111111 222222 444444
111111 222222 444444
444444
What I want to do is insert a clear:right; after the third widget. Which will look like:
111111 222222 333333
111111 222222
111111 222222
444444
444444
444444
If I know what it is, I can do it using the specific widget name but when users can add anything, there isn't an ID or class for 'widget-3', so ... is there another method?
Chris
On 2011-07-21, at 10:39 AM, Bjorn Wijers wrote:
> I'd suggest to make different sidebars. It's easier for users and more
> robust.
>
>
> met vriendelijke groet,
> Bjorn Wijers
>
> * b u r o b j o r n .nl *
> digitaal vakmanschap | digital craftsmanship
>
> Werkdagen:
> Van maandag t/m donderdag vanaf 10:00
> Vrijdag is voor experimenteren en eigen projecten.
>
> Postbus 14145
> 3508 SE Utrecht
> The Netherlands
>
> tel: +31 6 49 74 78 70
> http://www.burobjorn.nl
>
> On 07/21/2011 12:29 AM, Christopher Ross wrote:
>> Anybody have a suggestion for how to split the dynamic_sidebar() into groups?
>>
>> I have a theme that uses dynamic_sidebar() to display widgets across the bottom as a footer, but I want to include a CSS to clear the div's between the third and fourth.
>>
>> c.
>>
>>
>>
>> --
>> Christopher Ross
>> christopher.ross at rodonic.com
>>
>> Rodonic - http://rodonic.com
>> My Blog - http://thisismyurl.com
>>
>> Twitter - http://twitter.com/#!/thisismyurl
>> Facebook - http://www.facebook.com/thisismyurlcom
>>
>> (416) 900-3731
>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
--
Christopher Ross
christopher.ross at rodonic.com
Rodonic - http://rodonic.com
My Blog - http://thisismyurl.com
Twitter - http://twitter.com/#!/thisismyurl
Facebook - http://www.facebook.com/thisismyurlcom
(416) 900-3731
More information about the wp-hackers
mailing list