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 » Center area post/pages »

CSS Help


  #1  
Old Sep 28, 2012, 08:22 AM
theadventurebite
 
136 posts · May 2010
I'm still struggling a bit with figuring out how to call certain functions in css.

For example this is my source code for a plugin I have on my category pages and on my single pages:

Code:
<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview">
So I know I need to style it with the really_simple_share portion but I don't understand whether it should be a # or a div. and I don't understand how to style just the one on the category pages vs the one on the single pages. I have created a archives.php file for styling the category pages so maybe I need to add something there?

Help? Links to a tutorial? I hate it when I don't know what I don't know because I don't even have the right search terms to describe what I am trying to do.

Thank you so much,

Dani
  #2  
Old Sep 28, 2012, 09:11 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
check out the tutorials at htmldog.com
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Sep 28, 2012, 11:20 AM
theadventurebite
 
136 posts · May 2010
Thanks. Got the basic part understood much better.

That is a great site!

Still unsure of how to style just the output on the category pages. I found info on how to do it for a page number like this:

Code:
.page-id-454 .whatever whatever
but I can't seem to find anything for category pages.

is_category works in php so looking for something like that. If that doesn't exist I'm thinking I may need a separate css file for the archive page? Seems like a hassle for this little thing.
  #4  
Old Sep 28, 2012, 11:26 AM
theadventurebite
 
136 posts · May 2010
Basically what I want the css to say is:

If you are in category view and the div class #really_simple_share is present

style it like this
  #5  
Old Sep 28, 2012, 11:32 AM
theadventurebite
 
136 posts · May 2010
Ohh idea! Can I wrap this in the php with another div and call that something....and then just style that?

Trying....
  #6  
Old Sep 28, 2012, 12:26 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Look at he source of the page and check out the <body....> statement
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Sep 28, 2012 at 12:29 PM.
  #7  
Old Sep 28, 2012, 12:26 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
really_simple_share is a class not an ID. You use a period before a selector to indicate it is a class and a # to indicate it is an ID.

Firebug is a big help in this area along with sites like htmldog and w3schools.com
__________________
~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.
  #8  
Old Sep 28, 2012, 01:32 PM
theadventurebite
 
136 posts · May 2010
Thanks Larry, I keep flip flopping them in my head.

Juggledad I looked at the body tag and this is what I found:

Code:
<body class="archive category category-food category-9 logged-in admin-bar">
Since I am trying to get it to be applied to all the category views I'm not sure how to phrase that. Can I just use .archive .really_simple_share and have it apply to all or do I need to go through each category and use those full classes?

Will be back home in a bit so I can test.

Thanks!

Bookmarks




All times are GMT -6. The time now is 12:22 AM.


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