Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

Custom widget area widths


  #1  
Old Jun 17, 2014, 03:22 PM
gr870sfunk's Avatar
gr870sfunk
 
110 posts · Mar 2011
Montgomery, AL
Is it possible to do the custom widget width as a percentage like below or does it have to be in pixels?

HTML Code:
<?php bfa_widget_area('name=Logo Header&cells=2&align_1=9&align_2=9&width=60%&width_2=40%'); ?>
__________________
"I don't talk things, sir...I talk the meaning of things. I sit here and know I'm alive." - Prof. Faber from Fahrenheit 451
  #2  
Old Jun 17, 2014, 06:04 PM
juggledad's Avatar
juggledad
 
23,573 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
As is...no, but with a little code change it could happen. The code would have to be changed to check for a '%' or a 'px' and use them instead of the way it currently works. And the documentation would have to be rewritten. Coding, testing and documentation would probably take 2hrs of time.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jun 19, 2014, 11:41 AM
gr870sfunk's Avatar
gr870sfunk
 
110 posts · Mar 2011
Montgomery, AL
Well since the client didn't pay for a responsive site, i'll stick to the pixel widths. However, it is good to know that I can custom "fix" it, if necessary.

Thanks JD!
__________________
"I don't talk things, sir...I talk the meaning of things. I sit here and know I'm alive." - Prof. Faber from Fahrenheit 451
  #4  
Old Aug 16, 2014, 04:26 AM
KMJ
 
22 posts · Oct 2012
By the way, I've just spent a frustrating time trying to get the widget widths set because I didn't realise it had to be "width_1=200px" and not "width_1=200"! Can you clarify this in your "Add new widget areas" page to help others.
Just a minor point, thanks.
  #5  
Old Aug 16, 2014, 07:28 AM
juggledad's Avatar
juggledad
 
23,573 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Tis will be fixed in 3.7.18 to the effect so you can use 'px' or '%' and if you don't use either, it will default to 'px'.

For example if you have
PHP Code:
width_1=25px&width_2=40 
they will both use 'px'. if you have
PHP Code:
width_1=25&width_2=40
width_1 will be 25px and width_2 will be 40%
note: if there are only 2 cells, then cell 2 will be the width of the page - 25px (width 1)
note: if there are 3 cells, then cell 2 will be the 40% of width of the page - 25px (width 1)

there will be some added documentation on screen for this too.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
custom widget area, percent, width

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to set header, footer and center body widths to different widths #2 ozbod Header configuration & styling 2 Mar 4, 2011 09:27 AM
[SOLVED] How to set header, footer and center body widths to different widths ozbod Header configuration & styling 4 Mar 3, 2011 09:28 AM
Styling Custom Widget Area bigwavedesign Sidebars & Widgets 5 Nov 12, 2010 04:47 PM
UGH Errant custom widget area horsemansarts Sidebars & Widgets 0 Mar 2, 2010 10:24 AM


All times are GMT -6. The time now is 01:48 PM.


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