free hit counters
If you are using Internet Explorer as your browser please be running at least IE 7 or above. This site does not support IE 6 or below. Go here for the latest free version including easy download and installation instructions If you want to make it real easy on yourself, download Firefox , the most popular browser in the world. It's free and simple. You'll be so glad you did.
May
11
2009

Highlight any part of your post or page

163

You can highlight anything from individual words, to sentences, to entire paragraphs. First thing you’re going to do is figure out a class name. This name will be used over and over again to put the highlight anywhere in any post or page

I named mine “my-highlight”

Add the name to your custom.css and chose a color you want for the background

.custom .my-highlight {background: #fefdaa ;}

Now, when you write a post or page and you want to insert the highlight anywhere you want make sure you’re in the html editor…

47

Pick where you want the highlight to start and type in this with the name you gave the class for the highlight…

<span class=”my-highlight”>

Where you want the highlight to stop just add this…

</span>

For example I want to add a highlight to this sentence you would do it like this…

Lorem ipsum dolor sit amet, <span class=”my-highlight”>consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt</span> ut laoreet dolore magna aliquam erat

Now it doesn’t matter what post or page you’re writing because you have the selector in your custom.css so all you have to do is call it with the class name you gave it.

Leaving a comment with code in it...

If you would like to leave a comment and you have examples of code you want to show, you must "escape the code". This allows the entire code to show correctly by inserting certain variable around certain tags to make them show. If you don't "escape the code" your code will show up broken, mangled, and it won't be able to be seen correctly. "Escaping the code" is very simple...

  1. Copy your code you want to show
  2. Click here to go to the site to escape the code
  3. Follow the directions, it's so easy
  4. Once you have the escaped code copied, paste it in the comments area where you want
  5. Now you can enjoy life


Go ahead, leave a comment...

{ 5 comments… read them below or add one }

allison May 11, 2009 at 7:51 pm

Thank you! Looking forward to using this.

Reply

Tina May 11, 2009 at 8:18 pm

Your tuts are great. Keep ‘em coming!

Reply

Jorge l Nokia Mobile Talk May 15, 2009 at 12:28 pm

for some reason, this mod isn’t working for me at all, I’m coping the code to notepad then pasting to my css and then creating a test post and wrapping the code and then hit preview and I see nothing or does it only show up when you publish the post. Confused.
thanks

Reply

Nasty May 15, 2009 at 3:25 pm

After you inserted your code into your custom.css did you upload the new file to your server

Reply

George Serradinho May 27, 2009 at 8:27 am

Wow, I just started using Thesis the other day and I’m loving the way we can customize things in a jiffy. Thanks for sharing this information as I really was looking all over on how to do it :)

Reply

Leave a Comment

Previous post: Place a row of ads on your page

Next post: Add a drop cap to your post or page