• Home
  • Contact Me
WordPress Tavern
Where Every Drink Is On The House
Browse: Home / 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:

  • Email
  • Facebook
  • Reddit
  • Twitter
  • Google +1

Posted in WordPress | Tagged comments, hints, popups, tricks

15 Useful Hacks From WPBeginner

15 Useful Hacks From WPBeginner

By Jeffro on August 4, 2009

wpbeginnerlogo 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.

Share this:

  • Email
  • Facebook
  • Reddit
  • Twitter
  • Google +1

Posted in News | Tagged hacks, tips, tricks, wpbeginner | 6 Responses

Easy Way To Highlight Guest Posts

Easy Way To Highlight Guest Posts

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.

Share this:

  • Email
  • Facebook
  • Reddit
  • Twitter
  • Google +1

Posted in Blogging | Tagged css, guest posts, techniques, tricks | 1 Response

© Copyright WPTavern 2013 All rights reserved About / Poll Archive / Site Archive // Powered by WordPress Mtn. Dew And Hybrid
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.