Jump to content
Sign in to follow this  
dainiswmichel

"disable" .hentry on a page where i'm inserting raw html?

Recommended Posts

dainiswmichel

hey, i'm needing to put together a version of http://207.56.111.60/landing1.html in wordpress... i added the styles from the landing page into pagelines custom code -- looking good i'm using the raw html plugin by janis elsts which has saved my bottom more than a few times :-) BUT, if you check http://sanmiguel.taoofyouth.com/learn-more/ you'll see that pagelines (r wordpress or ?) is adding .hentry to the table style, "messing up" the formatting. in firebug, if you remove the padding and text alignment parameters from here: .hentry table td, #comments table td { padding: 0.35em 0.6em; text-align: center; } the formatting improves. anyway, i figure .hentry may be important for pagelines, so i'm wondering if there is a quick fix that could do something like "block" the conflicting or "overriding" styles on the new page. cheers, dainis

Share this post


Link to post
Share on other sites
Rob
Dainis, Wordpress handles tables differently than HTML. Lots of CMS systems are. The tables you're creating on that page are using typical HTML formatting.... things like cellspacing="0". Those don't work well. If you look at the source code and CSS at http://www.epicurus.com, you'll see I use lots of tables, even nested tables, but each is individually styled. One of the problems themes in general have with tables too, is simply that if you add table styling to a stylesheet you need to have styling for the specific table. That means putting each table in a specific div with its own classes. Your CSS will fill up becoming massive. By placing the CSS in the table itself, you increase only the load time of the page where the table is located. I know you're very good with CSS, but I've used http://www.w3schools.com/css/css_table.asp for lots of great resources.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
dainiswmichel
as much as i enjoy enabling profits and working with cool people -- this is the part of "what i do" that i like the least. of course i could go in and "redo" the whole thing. i just really don't want to. i tried surrounding one of the nested tables with a div. are you saying i could try giving each style within each table a unique name? i'm not quite following: "you need to have styling for the specific table. That means putting each table in a specific div with its own classes. Your CSS will fill up becoming massive. By placing the CSS in the table itself, you increase only the load time of the page where the table is located." i once created a "page template" with old html and then applied that template to a wordpress page (but i'd rather leave the copy in the wp page this time). any other workarounds that could reduce my time to implementation here? is it really: strip out all the tables and use CSS?

Share this post


Link to post
Share on other sites
Jenny
You can't block .hentry from happening but you can give it your own CSS to change how it looks. Alternatively, there are several table plugin available for Wordpress that work great as well. Perhaps give one of them a try?

Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
dainiswmichel
maybe a year or two ago, i went through the process of adding a table into WP pages and posts. i wound up using an insert html plugin along with html from an html editor: http://screencast.com/t/nTAhb3xY58N9 http://www.curetinnitus.org/join-curetinnitus-org/ the table styling itself is from a free online table styling website. wp-table reloaded, i think is what it's called, and the other table plugins i tried, actually imported the tables themselves, creating a whole "nuther" unruly process. stripping out the tables here: http://sanmiguel.taoofyouth.com/learn-more/ may actually not be "that" painful. i "just might" give it a shot with inserting the HTML, but it looks like .hentry "won't stop." hmm, can you let me know the code for only changing .hentry for a specific page id? something along those lines, cuz i'm assuming it's a pagelines style needed elsewhere on the site ... right?

Share this post


Link to post
Share on other sites
catrina
You can change the CSS for .hentry for a specific page ID, but not the .hentry CSS selector itself.

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
Rob
Dainis, When I first created tables in my site, I copied and pasted from an HTML page. It was a mess. What I ultimately did to make life easier was to test the CSS in a sample table till it achieved my desired results, then, taking the entire table to a text editor, I made global changes to table tags replacing things quite easily, like changing to . Admittedly, I sometimes had to take the lowest level of the nested tables and do those first. But ultimately, it was quite easy and took me under 20 minutes to affect all the CSS, including researching and testing. Unlike my wonderful colleagues Jenny and Catrina, CSS isn't really my thing. But it worked for me and was, much to my amazement, simple and easy to affect.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
dainiswmichel
the original author of the sales page has divs and tables all mixed in together. yes, we do loony stuff to get things to work. it was likely decently cross-browser compatible and all around 3-5 years ago. dreamweaver allows you to convert tables to divs, but the divs then stay and the content winds up in the wrong order i am basically piecing this sales page together bit by painful bit and there looks to be no other way. i'm making progress and have a process. i could have just started in manually and would likely be done by now, but if i know this client, the colors need to be the same, stuff needs to be "the same," so i'm using dreamweaver, stylizer, and textwrangler textwrangler was the only text editing app that did not "destroy" the smart quotes and emdashes in the original doc. interesting. the videos had their own embedded player, but because i am using "raw" html that the wp visual editor messes up, i need to stop and start the raw html tags where there are videos. i "think" i extracted all the inline styles, so in the end i will have a healthy set of styles that can be used on Wordpress sales pages. i bought a mediocre sales page css package yesterday. a few good checkboxes, nothing extraordinary. i figure sales css and an easy process for implementation might be a good "thang" for the pagelines store. anyone care to contribute some ROCKIN' sales style css to a pagelines sales page style sheet? i've been harping on theme developers for years to help people create sales pages. i tried a few of the commercial thangs again a few years back. just found: http://creationspire.com/wpspire/ http://wpsalesengine.com/nc/ this one is actually pretty nice: http://undercoverdesigner.com/shortcodes/ and the plugin was discontinued by the author looks like few days ago: http://www.warriorforum.com/warrior-special-offers-forum/301572-wordpress-plugin-create-sales-pages-5-mins-works-all-themes-2.html maybe i'll get in touch with her cuz really, i'm just looking to "get" the css itself. even though the plugin seems to conflict with genesis and thesis, it might not with PL... but still, for me, the process is: get or create great sales page css import the styles so i can use them in the visual editor that's really it. i don't need a "plugin," just a process to make the styles available.

Share this post


Link to post
Share on other sites
Jenny
Even though you say that plugin conflicts with genesis and thesis, I would still advise checking it out. You never know!

Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
dainiswmichel
the author discontinued the plugin because of the conflicts (i think). i've tried to get in touch with her, but it looks like i'm designing from scratch.

Share this post


Link to post
Share on other sites
Kate
@dainiswmichel To sum things up, where do you stand on this? Were you able to get it sorted out?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×