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

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


  #1  
Old Jul 31, 2010, 10: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, 06:43 AM
lmilesw's Avatar
lmilesw
 
10,176 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, 08: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, 08:22 AM
lmilesw's Avatar
lmilesw
 
10,176 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, 10: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, 11:34 AM
lmilesw's Avatar
lmilesw
 
10,176 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, 01: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, 03:33 PM
lmilesw's Avatar
lmilesw
 
10,176 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, 03:53 PM
lmilesw's Avatar
lmilesw
 
10,176 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 01:40 PM
[SOLVED] Table Format for a Single Table joan Center area post/pages 4 Jul 13, 2010 09:03 AM
Add Cell Spacing or Border to Main Table maxhugen Header configuration & styling 1 Dec 2, 2009 01:55 PM
Table Colors Not Appearing Using Google Docs Plugin jayccsf Header configuration & styling 0 Sep 27, 2009 10:37 AM
Hackdalic's Table Of Contents Box Plugin -- is a Yes! fromtheranks Plugins & Atahualpa 2 Jun 29, 2009 04:49 PM


All times are GMT -6. The time now is 05:50 AM.


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