Custom widget area widths
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%'); ?> |
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.
|
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! |
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. |
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:
PHP Code:
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. |
All times are GMT -6. The time now is 02:09 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.