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

How to reuse parts of WordPress site e.g. header, footer, part of header for multiple WordPress sites?

I would think that your best bet is option 3 (multisite) if possible. Once you’ve got your network of sites set up you can then specify which menu to use as described here. Doing the other solutions (a more rough and ready ‘hardcoded’ approach) will almost certainly give you headaches in the future. Having multisite … 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

Blog shows up without Theme/CSS styles

You can add the WP_HOME and WP_SITEURL constants in your wp-config.php file to manually override the database options. Scenario one: You want to surface WordPress from your blog folder. define(‘WP_HOME’,’http://example.com/blog’); define(‘WP_SITEURL’,’http://example.com/blog’); Scenario Two: You’ve moved WordPress to another folder, but want it to surface at your root. define(‘WP_HOME’,’http://example.com’); define(‘WP_SITEURL’,’http://example.com/blog’); You will need to make sure … Read more

Trouble After Update, Removing Plugin

It looks like the the page is not “zoomed” in. It appears that the image: http://www.millermusicllc.com/wp-content/uploads/2010/11/DSC_3508.jpg Is bigger on the first link as apposed to the second link, also styling on the style.css is different in general: First link: <img src=”http://www.millermusicllc.com/wp-content/uploads/2010/11/DSC_3508.jpg” alt=”” title=”miller” width=”320″ height=”330″ class=”alignnone size-medium wp-image-30″> Second link: <img src=”http://www.millermusicllc.com/wp-content/uploads/2010/11/DSC_3508.jpg” alt=”” title=”miller” width=”320″ … 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.