Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

[SOLVED] How can I insert a preformatted table avoiding Atahualpa to override its sty


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Nov 9, 2009, 01:48 AM
danidemi
 
1 posts · Nov 2009
Hi,
currently Atahualpa applies some nice styles to tables.

The problem is that I need to post an already styled table that I got from a spreadsheet. That table is full of colors, and those colors have a deep meaning, so I would be able to show the table as it is.

Sadly, Atahualpa has css style that are applied to each table contained in posts. This is great generally speaking, because it ensures a consistent style across the blog, but it's not what I need in this very peculiar scenario.

So... Does anyone knows if there is a way to make sure a table get show with its original colors ?

Removing or modifying the Atahualpa css is not a solution, 'cause it would modify the appearance of all tables across the blog.

Thank you very much

Daniele
  #2  
Old Nov 9, 2009, 04:11 AM
juggledad's Avatar
juggledad
 
22,043 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
have you got an example url?
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #3  
Old Nov 10, 2009, 04:18 AM
Mista
 
2 posts · Nov 2009
Hello Daniele,

I am fairly new to CSS as well and ran into the same problem as you did.
For now I have it working and am able to address each cell individually to set the style.
But I don't know if that is the 'correct' way of doing it or if this is what you want.
I used the info from two posts:
1) http://forum.bytesforall.com/showthr...ghlight=tables
2) http://forum.bytesforall.com/showthr...ht=table+class

Step 1)
In the post where I want to have a table with my format I insert this table:
Code:
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td id="td-past" width="25%">first item</td>
<td id="td-past" width="25%">second item</td>
<td id="td-current" width="25%">third item</td>
<td id="td-future" width="25%">fourth item</td>
</tr>
</tbody></table>
The key is the 'id=your-reference-for-this-cell' reference.

Step 2)
Open Atahualpa Theme options and select 'Add HTML/CSS Inserts'
Here you can insert the desired style per referenced id:
Code:
#td-current {
	background: #85c2c2;
	text-align: center;
	font-weight: bold;
	}
#td-future {
	background: #ffffff;
	text-align: center;
}
#td-past {
	background: #cccccc;
	text-align: center;
}
Save the theme options and in the frontend it should work. NOTE that you won't see this while editing your post as the CSS rules are not applied in editing mode.

Good luck, hope this helps.
  #4  
Old Apr 1, 2010, 12:10 AM
Kazna
 
13 posts · Jan 2010
Mista you've saved my day! :* I was getting stuck with this and follow your instruction, it's very good now. Thanks a lot!

Bookmarks

Tags
colors, stylesheet, tables

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to override Atahualpa default 404's? gjt Atahualpa 3 Wordpress theme 11 Dec 10, 2012 06:37 PM
How to Override Table CSS? jkestler Atahualpa 3 Wordpress theme 10 Dec 26, 2011 05:45 PM
Can anyone recommend a method to insert a table so I can list things for sale? cdgeorge Plugins & Atahualpa 8 Oct 26, 2009 04:23 AM
Which php file should I Edit to Insert Opt In form in SideBar for Atahualpa Theme? kacang Sidebars & Widgets 0 Aug 1, 2009 03:41 AM
How i insert a sales letter into Atahualpa 3.3.2 alabastru Forum How-To 2 Jul 6, 2009 07:46 PM


All times are GMT -6. The time now is 10:21 PM.


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