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 »

Alternating background colors for category items in sidebar category widget


  #1  
Old Oct 31, 2011, 09:40 AM
Cheers
 
105 posts · Jun 2010
Is it possible to have alternating background colors for textual category items in a sidebar widget? Perhaps even a small alternating icon for each category?

I have attached a screen snap to show what I have. Notice that the categories alternate between mac and windows. It would be nice if I could tie a small mac icon to the post mac tags and a windows icon to the post windows tags. Then if I could alternate the line background colors, ie. blue for mac, green for windows or vice versa.

Any advice and/or help greatly appreciated

cheers.


Last edited by Cheers; Nov 28, 2011 at 07:05 AM.
  #2  
Old Oct 31, 2011, 10:45 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
if the categories had a class assigned to them, like 'mac' and 'windows' then you might be able to use some CSS to do what you want.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Oct 31, 2011, 11:54 AM
Cheers
 
105 posts · Jun 2010
How would I do that? There is nothing in the category editor that even indicates a place to put a class. I'd really appreciate it if you would show me how to do this.
  #4  
Old Oct 31, 2011, 12:11 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
You can use Firebug in Firefox to determine the classes. If you put those posts in the categories of mac and windows most like the class will be category-mac and category-windows
__________________
~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.
  #5  
Old Nov 2, 2011, 07:22 AM
Cheers
 
105 posts · Jun 2010
I used Firebug to capture the html for the following two categories:

<a*title="View all posts filed under Arkanoid (MAC)"*href="http://yourbestgamesstore.com/category/arcade-action-4/arkanoid-38">Arkanoid (MAC)</a>

<a*title="View all posts filed under Arkanoid (WIN)"*href="http://yourbestgamesstore.com/category/arcade-action-6/arkanoid-40">Arkanoid (WIN)</a>

It seem to me that what determines the category in the first instance is /arkanoid-38"> and in the second instance /arkanoid-40"> I'm the one that put the (MAC) and (WIN) in the text that actually shows as the category on the page. Problem is that these games come in by rss feed and whenever a new game comes in it just ignores my changes and plops in a new category with no reference to either (MAC) or (WIN).

So It would be nice if I could remove all the (MAC) and (WIN) that I have added and get to a point where the rss supplied category would automatically put a different colored background with either a win or mac logo for each category.

Advice?
  #6  
Old Nov 2, 2011, 08:05 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Firebug will show you the category. Then you use CSS in the CSS Inserts box of the theme options to give a background color to those categories.

The class will be on the <li...> that includes the <a...>
__________________
~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; Nov 2, 2011 at 08:27 AM.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing category order in category menu bar, not in sidebar cat. list paulae Page & Category Menu Bars 13 Mar 30, 2011 06:36 PM
[SOLVED] Background color:hover not working for 'category' items in menu 1 (page menu akg Center area post/pages 4 Sep 27, 2010 09:08 AM
Background Image for Category Menu Items joan Page & Category Menu Bars 3 Apr 19, 2010 04:30 AM
How to show alternating items of two categories on one page Sakshin Header configuration & styling 8 Nov 16, 2009 09:06 AM


All times are GMT -6. The time now is 08:01 PM.


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