Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   [SOLVED] New Widget area; side-by-side (http://forum.bytesforall.com/showthread.php?t=20023)

dmkjr Mar 29, 2013 10:49 AM

[SOLVED] New Widget area; side-by-side
 
I need a little assistance in getting my new widget area to display side by side instead of in a row.

For example


RECENT POSTS CATEGORIES SUBSCRIBE
RECENT POSTS CATEGORIES SUBSCRIBE

Something like that. Right now they are displaying like this:

RECENT POSTS
RECENT POSTS
CATEGORIES
SUBSCRIBE

Thanks,
David

jerryc Mar 29, 2013 11:14 AM

I'd use nested percentage grids.

Go to:

Dashboard > Appearance > MZ options > CSS Settings > Choose CSS Grid

and choose a percentage based grid layout.

In your template, within your sidebar area, put the following code:

HTML Code:

<div class="row">
  <div class="col4"><?php dynamic_sidebar ('recent-posts'); ></div>
  <div class="col4"><?php dynamic_sidebar ('categories'); ></div>
  <div class="col4"><?php dynamic_sidebar ('subscribe'); ></div>
</div>

Then, in your widgets, you'll see the three new widgets. Put in the code for each one.

They should be side by side.

If you're putting them into your header or footer, adjust the code accordingly.

Afterthought: If you're putting them into your header or footer, you may not even need percentage based grids.

dmkjr Mar 29, 2013 05:25 PM

Thanks for the reply. Using Google helped, but not as much as I hoped. I just missed the part where the admin panel would automatically update when the .php template calls for the widget area.

Now that I understood that, it was cake.

Thanks again!


All times are GMT -6. The time now is 03:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.