Due to the fact that Worpress decided to get rid of the “Press It” function until 2.6, I have recently had the need to post the code that will allow you to use the “Press It” feature on your own.
As it turns out, it is supposedly very hard to post code in WordPress. If you just copy and paste your code in, WordPress will turn your quote marks into “Smart Quotes”. They look pretty, but do not work with code. So I set about finding a plugin or some other method to correct this.
Everywhere I looked people were recommending different methods. From using plugins and custom fields, to manually editing, and to online converters. I tried them all, but they either didn’t display the code correctly, or messed up my formatting site wide.
So here is my solution, it may have been suggested before, but I sure couldn’t find it with hours of searching and testing. Simply insert this code into your style sheet:
pre { width: 95%; overflow: auto; padding: 10px; margin: 1em auto; font-family: "Courier New", Courier, mono; background-color: #ddd; color: #555; border: 1px dotted #999; }
Now, when you paste your code into the WordPress editor, highlight it, and select the preformatted option from the “Format” drop down menu.
The pre tag will preserve your quote marks, spacing, indenting, and other elements.
And thats all you have to do. Your code will work when copied and pasted from the browser. If you have a long line of code, instead of running over everything, this will make a horizontal scroll bar to contain it.
Note: WordPress may apply separate <pre> tags to each line when you select it from the drop-down menu. (I have no idea why, it defeats the whole purpose of <pre> tags) To get around this, either manually add <pre> and </pre> before and after the text under the HTML tab in the edit screen, or apply the formatting with the code all as one line, and add the line breaks in afterward.
Oh Noooooo…..
My favorite function in WordPress seems to be missing from the admin pages of Word Press 2.5 rc1 (and from 2.5 after it’s been released) Might be because they claim to have removed javascript from the admin- as well as the AJAX functionality. It’s due to return in 2.6 (but, my students can’t wait!).
So, what to do? If you are upgrading- your old Word Press press it bookmark will still work. If you are doing a new install, you’ll have to make a book mark with the following as the url:
javascript:if(navigator.userAgent.indexOf('Safari') >= 0){Q=getSelection();}else{Q=document.selection?document.selection.createRange().text:document.getSelection();}location.href='http://www.YOURDOMAIN.tld/wp-admin/post-new.php?text='+encodeURIComponent(Q)+'&popupurl='+encodeURIComponent(location.href)+'&popuptitle='+encodeURIComponent(document.title);
Make sure you copy the whole thing- and replace YOURDOMAIN.tld (top level domain) with your own domain name. ie. websitetology.com for this site.
Step by step on how to make a Pressit bookmark for WordPress 2.5
1) use Firefox.
2) Bookmark any page (I prefer to save this in the “Bookmark Toolbar Folder” so it’s easily available
3) Go to “Organize Bookmarks” under “Bookmarks” and find the bookmark you just made
4) Right click on the bookmark and choose “Properties”
5) Change the name to “Press-it name of your site”
6) Copy the above code to the location field
7) Make sure you have your URL instead of “www.YOURDOMAIN.tld” ie www.websitetology.com for this site
Save the bookmark- and now- you are free to use the wonderful pressit- like this tutorial outlines.
Hope this helps- and that the code doesn’t get mangled by WordPress. works for you.
There is always Google ad sense, but, what if you want to sell even more ad space?
AdBrite is a way for publishers to add revenue to their site.
AdBrite – How AdBrite Works
AdBrite’s aim is to provide our publishers with the most control, best service, and highest payout possible.
Step 1 – Choose ProductsThrough a single snippet of HTML, AdBrite can serve any combination of the following ad formats:
* Text and banner ads with customizable layout
* Full page ads – A high-paying full-screen ad on the third pageview of your site, shown only once per user per dayStep 2 – Attract advertisers
Anyone visiting your site can buy an ad directly on your site by clicking “Your Ad Here.†You’ll also be listed in the AdBrite marketplace, and represented by our busy in-house sales staff.
Step 3 – ControlYou can choose to review each ad before it appears on your site. You can set the price for ads bought directly on your site. You can even have AdBrite show another ad network (your Google AdSense ads, Burst, etc.) if we can’t meet your minimum revenue requirement.
For really high volume sites, you can look to other ad placement services like Doubleclick which is now also owned by Google.
One thing you have to be aware of: once you ad advertising from a remote server, your page load times can start slowing down, which can lose you readers and reach. Some really successful sites can sell their own advertising and serve the ads internally, but you have to have a really targeted audience that advertisers want to reach.