[SOLVED] Widget CSS Classes Plugin
Has anyone used the plug-in "Widget CSS Classes"?
Have you had any success? It seems like an answer to one of my dreams...:confused: I want to create borders around some of my custom widgets and manage them. So I created a class "box_it" in the plug-in setup area and used it in one of my widgets (text) I put HTML Code:
.box_it {border: 2px #707070 solid;} |
try adding an important so you have
HTML Code:
.box_it {border: 2px #707070 solid !important;} |
OK, it works on standard widget areas but not on ones that I make. thanks. Do I need to put the code someplace else for the customized widget areas?
|
3.7.10 wp 3.5.1
|
I just tried it on a text widget and it worked fine for me as long as I added !important to the CSS.
|
hmmm a custom widget area inserted in header or footer area? side bars work for me but not the custom ones.
|
three sets off widgets in header area:
HTML Code:
<?php bfa_widget_area('name=above-header&cells=4&width_1=119&align_1=9&align_2=9&width_2=370&width_4=500&align_4=2&before_widget=<div id="%1$s" class="header-widget %2$s">&after_widget=</div>'); ?> %bar1 %pages %bar2 HTML Code:
<?php bfa_widget_area('name=top-footer &cells=4 &align=2 &width_1=200 &width_2=200 &width_3=200 &width_4=200&before_widget=<div id="%1$s" class="header-widget %2$s">&after_widget=</div>'); ?> <br/ > |
Is it a typo or are there spaces in your widget code as shown here
PHP Code:
|
HTML Code:
<?php bfa_widget_area('name=above-header&cells=4&width_1=119&align=9&width_2=370&width_4=500&align_4=2&before_widget=<div id="%1$s" class="header-widget %2$s">&after_widget=</div>'); ?> %bar1 %pages %bar2 %image %bar2 I had one in the footer that I took out for control and I had a third one in the header area that I removed as well. would it happen to have anything to do with the fact that I have more then one in header? :( |
I don't think the multiple areas would cause a problem. Do your widgets that aren't working look like this screenshot?
|
what is the URL?
(just got back from visiting my new 4 hour old grandson (#3) |
Quote:
|
It's at a point where I would need to look at the back end to get any new ideas. If you PM me a login I will take a look.
|
which of your widget areas are the one you have customed?
|
The upper section "helping Haiti and Soccer" is in a widget. No effect from plug in
Text Here Same See EVENTS it is red because I selected text_red assigned in CSS inserts as .text_red {color:red !important;} This isn't working on any of my sites for widgets areas I have added. |
Why don't you add that class to the new widget area code? You say you have
HTML Code:
<?php bfa_widget_area('name=above-header&cells=4&width_1=119&align=9&width_2=370&width_4=500&align_4=2&before_widget=<div id="%1$s" class="header-widget %2$s">&after_widget=</div>'); ?> %bar1 %pages %bar2 %image %bar2 HTML Code:
<?php bfa_widget_area('name=above-header&cells=4&width_1=119&align=9&width_2=370&width_4=500&align_4=2&before_widget=<div id="%1$s" class="box_it header-widget %2$s">&after_widget=</div>'); ?> %bar1 %pages %bar2 %image %bar2 |
Juggledad and I were discussing this and he mentioned that Magic Quotes being set to on could be the issue.
|
Quote:
Here is what is in there now (with returns to make it easier to read. Just for Yucks I took out the entire class declaration of class="box_it header-widget %2$s" and it had no effect on site. Code:
<?php bfa_widget_area('name=above-header&cells=4 |
Quote:
Code:
php_flag magic_quotes_gpc off |
dealing with php settings is different at each host. You need to contact your host to find out the best/approved way to do it.
|
QUEST: Create custom widget areas within my site and address CSS on each individual use of the area within site separately.
Solution 1) Use "Widget CSS Classes" plug-in to address CSS for each widget 2) Use "Widget Logic" plug-in to give control of which page each individual widget will appear. Important Note: for BlueHost hosted accounts (check with your host provider):p:pThanks to lmilesw and juggledad! :p:p I will post a site soon that shows the wonderful things you can do with this. I'd love to hear what magic_quotes_gpc does. |
On BlueHost (and HostMonster) you can set your PHP version to 5.3. Magic Quotes has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
|
All times are GMT -6. The time now is 04:31 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.