Well, I haven’t done one of these in a while, and the last comment on the previous WordPress Quick Tips #4 was a congratulatory message on my wonderful tutorial on colon cleansing. Ah well…
But there is one very quick tip I want to pass on (there used to be two, but just discovered that WordPress 2.7 broke the other one!), which will save you lots of time when your tweaking the settings your blog.
Many settings pages are quite long these days (the one for AZIndex is no exception), and how often do you find yourself going into the same settings page, tweaking something, then scrolling all the way down to the bottom of the page to click on the “Save” button, over and over again until you get the settings just right? It’s a real pain, isn’t it?!
Well, in many of the settings pages, you can avoid all that scrolling to the bottom of the page simply by pressing the Enter key when you’re done changing the settings. If you have just typed into a text box, or just clicked on a checkbox or radio-button, then pressing the Enter key will often save the settings immediately and take you back to the previous admin page. If you are changing a dropdown list/menu or typing into a multiline text area, you will have to click on a nearby text box (taking care not to change anything in it) before you press the Enter key, but it’s still a lot more convenient than scrolling all the way down to the bottom of the page and clicking the “Save” button.
Sure, it doesn’t save you a lot of time if you only change your settings occasionally, but many bloggers are notorious tweakers and spend a lot of time inside settings pages until they get their blog just right. If you’re one of those people, the time you save will soon begin to add up!
Have you ever slaved over the formatting of particularly tricky blog post then forgotten how you did it? Ever gone back and edited an old post to hunt down the fiddly HTML you wrote so you can use it again in a new post? Well, I have, and I just found out something that makes the whole process easier and quicker.
Are you thinking of using a plugin that uses shortcodes? (Shortcodes are tags in square brackets like [az-index id="1" escape="true"] that some plugins use to embed content into posts and pages.) Do you want to be able to use a shortcode in your blog’s sidebar instead of your post or page?
Well, if the answer to both those questions is “Yes” then you have come to the right place!
This tip similar to Tip #1 in that it will help you add HTML styling to parts of your blog that the usual HTML styling doesn’t reach! Last time it was post headings, this time we’re targeting your blog’s tagline.
While it’s perfectly possible to style your blog’s tagline using a CSS stylesheet, that method only allows you to modify the styling of the whole tagline. If you want embolden one word, or italicize one phrase, then you’re out of luck. If you try adding <strong> or <em> tags, they just appear in the tagline. So, what to do?
Well, the solution is a little bit more involved than last time, which is why I’ve designated this article for tweakers as opposed to regular bloggers, but in most cases it only requires a one line change to your theme’s header file to do it.
So, if you’re ready, let’s go…
Did you know that you can embed HTML tags in the titles of your posts? I didn’t until I wanted to create a two-line title the other day. But now, after my “D’oh” moment, I suspect I might be making frequent use of this little feature.
For example, the title of this post has two lines and italic text. The HTML I used is as follows:
Just remember that your permalink (the URL of your post) may look a bit screwy if you don’t edit out the HTML. This is what WordPress did to the permalink of this post:
The HTML brackets are removed but the tags themselves remain, mangling the text. So don’t forget to tidy up your permalinks before publishing your HTML-enhanced titles.