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 » Plugins & Atahualpa »

How to Add Zebra Effect to Single Table with WP Table-Reloaded Plugin


  #1  
Old Jul 31, 2010, 11:20 PM
c12281
 
120 posts · Jul 2010
WP 3.0.1; ATA 3.5.3; Mac OS X 10.6.4; Firefox 3.6.9
I have installed the WP Table-Reloaded plugin. I have a need for some tables to be zebra-striped. I set the default to NO in the Atahualpa Table options since not all tables will be striped. WP Table-Reloaded provides an option to zebra stripe tables individually but this option does not work. Have a feeling the Atahualpa setting is overriding it. On the Atahualpa Table options page, the following code is provided to stripe tables individually: <table class = "zebra"> ... </table>. Being new to all of this, I am not sure exactly where to put this code. WP Table-Reloaded has a CSS options page. Here is an example of how to adjust column width for a table. How would I apply the zebra code referenced above, using this format? Thanks!

}
.wp-table-reloaded-id-14 .column-1 {
width: 470px;
}
  #2  
Old Aug 1, 2010, 07:43 AM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
Have you tried adding a class of zebra to the table as mentioned next to where you set zebra stripe to no in the theme options? Here is the text from ATO>Style TABLES>Zebra stripe all tables?
__________________________________________________ ___________________________
Add a different style to every second row in all tables in posts and pages? Alternatively, set this to "No" and add the class zebra to individual tables that you want to zebra stripe.

Example:
<table class="zebra"> ... </table>
__________________
~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 Aug 1, 2010, 09:07 AM
c12281
 
120 posts · Jul 2010
WP 3.0.1; ATA 3.5.3; Mac OS X 10.6.4; Firefox 3.6.9
I'm so new to this Larry. That's my question. I'm not sure where to put <table class="zebra"> ... </table> I tried cutting and pasting that exact code and put it into the html of the page following the table and it didn't work. Is that what I'm supposed to do?
______________

Have you tried adding a class of zebra to the table as mentioned next to where you set zebra stripe to no in the theme options? Here is the text from ATO>Style TABLES>Zebra stripe all tables?
__________________________________________________ ___________________________
Add a different style to every second row in all tables in posts and pages? Alternatively, set this to "No" and add the class zebra to individual tables that you want to zebra stripe.

Example:
<table class="zebra"> ... </table>
  #4  
Old Aug 1, 2010, 09:22 AM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
I hadn't looked at Table Reloaded in awhile. You will have to play with the options. Try unchecking the Default and Custom CSS boxes in the setting to see if that let's Atahualpa use it's settings is one suggestion.
__________________
~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 Aug 1, 2010, 11:43 AM
c12281
 
120 posts · Jul 2010
WP 3.0.1; ATA 3.5.3; Mac OS X 10.6.4; Firefox 3.6.9
Yes, I did uncheck the boxes in WP-Table-Reloaded so that the ATO would take precedence. Just not sure where to put the line:

<table class="zebra"> ... </table>

Do I need to change anything in that code line? Where does it go???
  #6  
Old Aug 1, 2010, 12:34 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
With those unchecked did you then set the Ata settings to yes on the zebra stripe?
__________________
~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.
  #7  
Old Aug 1, 2010, 02:29 PM
c12281
 
120 posts · Jul 2010
WP 3.0.1; ATA 3.5.3; Mac OS X 10.6.4; Firefox 3.6.9
No, because I do not want all tables to be striped. Most will not be striped...
  #8  
Old Aug 1, 2010, 04:33 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
Now I understand. I will look at Tables reloaded again
__________________
~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.
  #9  
Old Aug 1, 2010, 04:53 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
After installing Table Reloaded you should have a tables button in the visual editor to add a regular table. Play around with that. You can add a regular table with that button and set a class as in the example by using the WP HTML editor.

There is also a Table button in the HTML editor but that is for adding the Tables Reloaded shortcode.
__________________
~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.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing "Zebra" stripes on a table for one post/page - not entire site globalnerds Atahualpa 3 Wordpress theme 11 Dec 23, 2011 02:40 PM
[SOLVED] Table Format for a Single Table joan Center area post/pages 4 Jul 13, 2010 10:03 AM
Add Cell Spacing or Border to Main Table maxhugen Header configuration & styling 1 Dec 2, 2009 02:55 PM
Table Colors Not Appearing Using Google Docs Plugin jayccsf Header configuration & styling 0 Sep 27, 2009 11:37 AM
Hackdalic's Table Of Contents Box Plugin -- is a Yes! fromtheranks Plugins & Atahualpa 2 Jun 29, 2009 05:49 PM


All times are GMT -6. The time now is 03:47 PM.


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