By Jeffro on August 4, 2009
The folks over at WPBeginner.com have a great list of 15 different hacks for WordPress that they consider to be extremely useful, and I’d tend to agree. Their first hack which enables you to link to an external source from the post title sounds like something Matt Mullenweg could implement on his personal site. One of the useful hacks I found was the ability to use a custom image for the default Gravatar. Simple, but nifty. I’m also starting to see more of this thing called rand which is used to randomize something.
The most useful hack on that post which I’m thinking of implementing myself is the ability to delay the post from being published via RSS for a period of time so that I have a small window in case I need to make a change or edit the post. Couple of other good ones on the list as well so go check them out and bookmark it.
Posted in News | Tagged hacks, tips, tricks, wpbeginner |
By Jeffro on May 9, 2009
If you’ve read a guest post on this site recently, you may have noticed a special block I created just for them which is styled differently than the rest of the post. The block contains information about the author of the post, an avatar image and a link to the URL of their choosing. This way, I give the reader clear indication that the post they are reading is not mine. I know you’re just dieing to see how I accomplished this little feat so let’s get onto the code snippets.
Back in late April, I inquired on the forum if anyone had any experience or plugin suggestions regarding highlighting guest blog post authors. I was hoping to find a plugin that would add a div box which pulled in a users gravatar via their email address while I manually filled out the content in each post. I didn’t come across anything like that but thanks to the members of the forum, they offered a way in which I could add some CSS to my themes style sheet and then wrap the guest author content within that Div class so it would be styled accordingly.
Here is the CSS code I added to me theme.
.guestposter {
border: 1px solid #dddddd;
padding-bottom: 16px;
display: block;
margin-bottom: 20px;
font-style:italic;
background: #E9E4D4;
}
.img-gravatar{
float:left;
margin-right: 10px;
margin-bottom: 0px;
} |
Once this was added to my style sheet, I was able to manually assign the guestposter class to a block of content which dealt with the guest post author.
<div class="guestposter"><img class="img-gravatar" src="link to the image" alt="alt text" title="titletext" width="50" height="50" />This is a guest blog post written by <strong>My WordPress</strong>, author of the blog, <a href="http://www.wordpress.org" target="_blank">WordPress</a>.</div> |
Of course, just substitute the code with your own stuff and you should be all set. I don’t publish guest posts that often so copying and then pasting this code snippet isn’t too bad.
Posted in Blogging | Tagged css, guest posts, techniques, tricks |
Disclaimer Popups Using jQuery
By Jeffro on March 29, 2012
Helpful little article that explains how to use jQuery to create popups before sending an email or submitting a comment. ∞
Share this:
Posted in WordPress | Tagged comments, hints, popups, tricks