WordPress Sidebar HTML Insertion Plugin

by admin

DOWNLOAD: HTMLInserter 1.0

Custom sidebar modification in WordPress used to be as simple as adding html to the Sidebar.php file. But with dynamic sidebars, the process is a bit more complicated.

After doing some Google searching, I realized the easiest way to add links, text and images to the sidebar would be to create a WordPress plugin that did this. So, despite not really knowing .php, I managed to cobble one together that works fairly well.

Just drag HTMLinserter.php into your plugins folder (wp-content/plugins/) and then activate it in your administrator page. Once that’s done, add your HTML and text using either a the WordPress plugins editor, or a 3rd party text editing software. You can position your inserted code within the sidebar on the WordPress Widgets page.

Be sure to that every quotation mark in your HMTL code is immediately preceded by a backslash—the key under the delete key on most American keyboards—or WordPress will gag violently on the plugin.

Feel free to modify this, since, like I said earlier, I have no idea what I’m doing, and there’s probably a better way to go about this.