This is a great trick I found today while working on a problem for a client.
What was happening is that wordpress was wrapping her image in paragraph tags and causing it not to float right with text wrapping around it.
The solution was to add this to the functions.php file. (note, make sure you back up your funtions.php file first!)
function my_formatter($content) { $new_content = ''; $pattern_full = '{(\[raw\].*?\[/raw\])}is'; $pattern_contents = '{\[raw\](.*?)\[/raw\]}is'; $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE); foreach ($pieces as $piece) { if (preg_match($pattern_contents, $piece, $matches)) { $new_content .= $matches[1]; } else { $new_content .= wptexturize(wpautop($piece)); } } return $new_content; } remove_filter('the_content', 'wpautop'); remove_filter('the_content', 'wptexturize'); add_filter('the_content', 'my_formatter', 99);
Now you simply add [raw] and [/raw] tags around the element you are having a problem with.
How much do website updates cost?
If you already have a website and want updates done, or new pages added, we charge $75 per hour. Unlike other companies in Jacksonville and St. Augustine that bill you for an hour with a small update, we charge in 15-minute increments saving you money. We will always provide you with an estimate of how…
Where do I get images for my website?
We highly recommend taking your own images for your website. Almost any modern phone can take great pictures. We can edit them and make them pop for you. Having your own images makes your website feel more genuine and gives customers a better idea of your company. Most customers can spot a stock photo from…
Can you create copy / content for our website?
Absolutely! Our copywriter Blair does excellent work and has been creating compelling copy for our clients for years. His content is also SEO focused, helping you rank better in search engines. Blair has done content on pretty much any subject you out there. We also create copy for blog posts to help keep your websites…