ERIC SHEFFERMAN <DOT> COM

Blog-o-Goodness

Making a Popup Window in WordPress

Looking at my site, I realized that some of my code snippets are a little wide for my theme and may be being cut off in some browsers. On top of that, WordPress seems to like to mangle code. In the Edit Post page, there is a specific code button when you use the HTML editor, but the button doesn’t appear on the Visual editing screen.

My solution is to put code into a Popup window that will allow the user to view it more clearly and in a window wide enough for even the widest lines of code. In addition, this will allow me to make a photo gallery pop up and probably all sorts of other uses I’ll eventually invent. Read the rest of this entry »

  • Share/Bookmark

WordPress Fun – Displaying the Number of Database Queries

Today is just a quick little addition to the footer of the blog to show how many database queries it took to build the web page and how much time it took. Read the rest of this entry »

  • Share/Bookmark

Adding a Dynamic Widget Footer to Wordpress Using a Sidebar

So I’m now at the point where I’d like to be able to start putting in some advertising slots on this blog for affiliate links and for google adsense ads. That means I need a bit more control over the theme and a bit more “room” to put things. I’m also finding that a lot of widgets in the sidebar need more horizontal space than the two narrow sidebar columns allow.

Fortunately, there’s plenty of unused space in the footer of the blog — so I’m going to move some of the more wordy widgets down there — which should clear space for some 120×600 ads in the sidebars as well as other types of advertising. Also, it will make the Recent Posts and Recent Comments widgets more readable by putting them where they can spread out horizontally.

However, the theme I’m currently using doesn’t have any support for widgets in the footer!

I’m going to have to add those myself. Fortunately, it is very easy to add additional components in WordPress. Read the rest of this entry »

  • Share/Bookmark

Bad Behavior has blocked 127 access attempts in the last 7 days.

The following link is not for people: I do not like it, Sam I Am.