Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

[SOLVED] How to set width of custom widgets in logo area

Build custom WP THEMES, without
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
Old Jan 8, 2012, 08:43 PM
32 posts · Jan 2012
I created a custom widget for my logo area, made up of 2 cells. I would like to specify the width of Cell 1 (on left) to 735px, and cell 2 (on right) to 200px, with 25px between. If I set up the width of cell 1, everything else should be fine.

This is what I have in the configure area for it.

<?php bfa_widget_area('name=logo widget area&cells=2&align=9&align_2=3&before_widget=<div id="%1$s" class="logo-widget %2$s">&after_widget=</div>'); ?>

I looked in firebug to get a clue, and I can see that area is set up as a table.

table id: logo_widget_area
table class: bfa_widget_area

td id: logo_widget_area_1
div id: text-25
class: logo-widget widget_text nm


Last edited by TraciBunkers; Jan 8, 2012 at 08:46 PM. Reason: clarified where I had the code
Old Jan 8, 2012, 11:04 PM
32 posts · Jan 2012
I looked at the info again for creating a custom widget, and realized I missed that you could specify the width! So here's what I have for my custom widget, and it fixed my width issue for cell 1:

<?php bfa_widget_area('name=logo widget area&cells=2&align=9&align_2=3&width_1=735&before_widget=<div id="%1$s" class="logo-widget %2$s">&after_widget=</div>'); ?>


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I set a specific width for widgets in the same widget area sober Sidebars & Widgets 6 Jul 30, 2011 05:28 PM
logo / header area increasing the width of my site allyevans Header configuration & styling 2 Oct 5, 2010 01:00 PM
Can I change the width of the logo area? dieterssv Header configuration & styling 5 Nov 13, 2009 05:33 AM
[SOLVED] Correcting top logo area width Larry Header configuration & styling 8 Sep 28, 2009 06:11 AM

All times are GMT -6. The time now is 08:33 PM.

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