Having Trouble Styling a Table in a WordPress Post

Your understanding is partly right. Later styles override earlier ones IF they have the same or less specificity of the selectors. Specificity can be a tricky/counter-intuitive thing, but the basics are: selectors that specify an element in a more narrow (specific) way override those that define them in a broader way. It all depends on … Read more

Apply Classes to post text inside editor

You’ll need two code snippets. The first puts the select menu there. The second populates it. This is based on this tutorial, but slimmed down a bit. add_filter( ‘mce_buttons_2’, ‘mrw_mce_bad_buttons’ ); add_filter( ‘tiny_mce_before_init’, ‘mrw_mce_init’ ); function my_mce_buttons() { return array(‘formatselect’, ‘styleselect’, ‘|’, ‘forecolor’, ‘underline’, ‘justifyfull’, ‘|’, ‘pastetext’, ‘pasteword’, ‘removeformat’, ‘|’, ‘charmap’, ‘|’, ‘outdent’, ‘indent’, ‘|’, … Read more

Inserting a DIV Block Into a Listing of Excerpts?

add a counter to your loop or use a conditional statement with $wp_query->current_post, just before the ‘endwhile’, and add the div when the counter/post number reaches a certain value. please paste the full code of your template into a http://pastebin.com/ and post the link to it here, if you need more details.

image background is cut [closed]

Your background image repeats all right – but there’s a white bar at the bottom of your image… http://dev.freelanceu.net/mjl/miamischool/wp-content/uploads/2011/12/MCCS_bg.jpg

Background tiles not working in iPad2 but ok everywhere else

As it turned out I learned something quite useful and should have stopped back to post the answer here. After quite a lot of searching I found 2 articles: http://www.teknocat.org/blog/web-dev…-scaling-quirk which linked to: http://www.defusion.org.uk/archives/…iphone-safari/ To summarize: there’s a size-limit for background images/graphics that will be properly rendered by iphones/pads. Widths and heights can vary but … Read more

Adding custom css to a wordpress plugin? [duplicate]

You can either do it the way you are doing it now, or you can use the rule of greater specificity (ex div.foo > ul#bar > li.baz is more specific than just #bar > .baz). P.S. I am not sure this is WordPress-specific.

100% Width Footer – Custom Child Theme

Looking at your code, I don’t see anything obviously wrong, but using Safari’s inspector, it becomes clear that the footer DIV is not invoking the #footer CSS rule. Not clear why. If the header div and footer div have the same styling, you can simplify your code by using one set of styles: #header, #footer … Read more