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 » Header configuration & styling »

[SOLVED] Hover on images in home page only


  #1  
Old May 21, 2013, 12:57 PM
liana-kornik
 
17 posts · Mar 2013
Hello,

How can i add hover over images (opacity change on mouse over) to images on the home page?

I found the above code to a particular page:
body.page-id-95 .post img:hover {
background: #dddddd;
}

How do I change him to home page? By my examination this code does not work already.

Thank you.
  #2  
Old May 21, 2013, 01:04 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
Just target the home page instead of body.page-id-95. You can find that info with Firebug or looking at the source code. There are several threads that cover how to do that.
__________________
~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.
  #3  
Old May 21, 2013, 01:27 PM
liana-kornik
 
17 posts · Mar 2013
I tried to write:
home page .post img:hover {
background: #dddddd;
}
But this code not work.
  #4  
Old May 21, 2013, 02:45 PM
juggledad's Avatar
juggledad
 
23,632 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
just how did you come up with that CSS selector?
  #5  
Old May 22, 2013, 02:09 AM
liana-kornik
 
17 posts · Mar 2013
You are right! I wrote the code like this:
body.home .post img:hover {
background: #dddddd;
}

But still it does not work, why?
  #6  
Old May 22, 2013, 02:48 AM
liana-kornik
 
17 posts · Mar 2013
I found thanks.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Broken Images on home page lordloh Montezuma Theme 1 Dec 6, 2012 03:25 AM
Home Page (Static Page) Slider Images overlapping widgets on smaller/vertical screens CatalystCooks Atahualpa 3 Wordpress theme 1 Apr 13, 2012 03:07 PM
Hover image shows only on "Home" page KylaKreates Page & Category Menu Bars 5 Oct 21, 2011 05:56 PM
Header Images - One fixed image for Home Page - Rotate all images on all other pages? ClearlyRobert Header configuration & styling 10 Oct 12, 2010 12:12 PM


All times are GMT -6. The time now is 10:01 AM.


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