Get Adobe Flash player

Archive for the ‘Wordpress’ Category

WordPress editor adds unwanted HTML (p br)


In an effort to better perfect the WordPress engine, the developers may have gone a step too far in the wrong direction. WordPress is a Content Management System (CMS), even if it is a blog, and yet, in an effort to protect you from yourself, WordPress modifies your content for you.

It’s annoying, especially for those who know what’s going on. For those who really know what’s going on, they have to take time to combat such behavior  by writing a plugin.

One problem?

When you add an image to your content, you would do so by adding the following line:

<img src="image.jpg" alt="" />

However, WordPress doesn’t think that’s exactly what you want to do. They feel a correction is necessary, and so they modify your code as such:

</p>
<p>
<img src="blah.jpg" alt="" /><br />

</p>
<p>

It’s ridiculous, because this alone will prevent you from placing two images horizontal to each other, due to the BR insertion. Perhaps it’s a stroke of genius and I’m not swift enough to understand it. Of course, I realize some people actually need protection from themselves. You know, they might install a malicious plugin. Yet, is modifying content code the correct solution?

W3C you say? That’s fine, but leave the content to content creators and the engine to developers.

As of today, there is no simple solution to overcome this. Instead, a new plugin has been born created to override the WordPress “bugs.”  It’s called RAW HTML and gives you an inline option to avoid the WordPress fault.

If WordPress wants to keep and master this behavior, how about giving us an option, especially if we use the HTML editor and not the Visual editor?

Wrap text with HTML in WordPress posts.

Page Developer

Searching for how to wrap text around a picture in your WordPress article or HTML document?

There are many times as a web master you’ll want to wrap text around a picture, or some other HTML element.  Most of the time, your CSS/XHTML template should be applying styles from within the CSS.

However, as a WordPress author and content developer, you’re going to want to wrap text around pictures, scripts, video, and a number of other possible HTML elements; and to do so directly in your published articles.

While adding an entry into your CSS file is the preferred method of accomplishing this, using style in a <div> tag and surrounding your content is another; and the syntax looks like this:



</p>
<div style="float:right; margin:0px 0px 0px 8px;">
		<img src="myPicture.jpg" alt="MyPicture"/>
	</div>
<p>My text appears on the left side of the image</p>
<p>





RankPay
Maria Austin