Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Applying CSS to new widgets - Atahualpa 3.7.7


  #1  
Old Jun 28, 2012, 08:49 AM
wmike1503
 
10 posts · Feb 2010
Hi all,

I've added the following to my footer:

<?php bfa_widget_area('name=footer_widget&cells=2&align= 1&align_2=9&align_3=7&width_4=700&before_widget=<d iv id="%1$s" class="footer-widget %2$s">&after_widget=</div>'); ?>

This displays the new widget where I want it, I think

I would like to style this with CSS. I have tried the following (in CSS inserts):

.footer-widget {
background: #ffffff;
width:100%;
}

This has no impact at all.

I have also tried putting CSS into the widgets content area in the theme backend. This also does nothing.

I am, clearly, doing this wrong.

I would prefer to style just the individual widget, and not all of them.

Any suggestion very welcome.

cheers,

Mike
  #2  
Old Jun 28, 2012, 08:50 AM
wmike1503
 
10 posts · Feb 2010
Sort of sorted this. I have enclosed the widget in a div and assigned a class to it. This works but is a little clunky.

Cheers,

Mike
  #3  
Old Jun 28, 2012, 10:39 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
If you look at the documentation for teh new widget area you would see that the name=xxxx parameter will give you an ID of xxxx
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Jun 28, 2012, 09:49 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Your new widget code also is creating two cells but you have an align set for cell 3 and width set for cell 4, neither of which is there. This may work but makes the code more complex than needed.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Last edited by juggledad; Jun 29, 2012 at 02:39 AM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applying CSS to new widgets - Atahualpa 3.7.7 wmike1503 Sidebars & Widgets 1 Jun 26, 2012 09:08 AM
[SOLVED] Applying Bug Fixes/Website Disappeared Jewellswriter New Versions, & Updating 4 Jun 19, 2011 09:36 AM
difficulty applying back ground Zed Header configuration & styling 3 Sep 13, 2009 10:33 AM
[SOLVED] Applying Customizations Stopped Working CocteauBoy Atahualpa 3 Wordpress theme 2 Jun 8, 2009 04:48 PM


All times are GMT -6. The time now is 04:09 AM.


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