Tag Archives: code snippet

How To Set HTML Editor as Default Post Editor [WordPress]

Most of us are comfortable with the HTML post editor on WordPress Edit Post or Add New Post screen. As we know the ‘Visual Editor’ is the default post editor for WordPress, but it sometimes adds non-standard code to the post’s HTML source or it also changes the post formatting that we have done thru HTML editor. So why not change this and set the HTML editor as the default post editor. This is a very simple tip…

How To Disable The Visual Editor Without Using Plugin [WordPress]

The WordPress Visual Editor on the Edit Post screen is sometimes a real menace as it adds some formatting and removes the ‘div’ elements and sometimes paragraphs and classes automatically. It also adds some invalid HTML or what we can say non-standard code to our post’s HTML source. So in such cases, you definitely would want to disable the WordPress Visual Editor. There are two simple ways…

How to Remove Links in Comments Content Without Using Plugin [WordPress]

Consider, I comment on a WordPress blog and I just put the text as http://www.clickonf5.org/ as a reference site in the comment text. Note that I have not written the html to make it the link. But when the comment gets displayed on the post, this text automatically becomes a link which is clickable. Here is a one line code that will help you remove such automatic formatting and conversion.