Ordered list tricks for WordPress

JavaScript for WordPress

Ordered lists are heavily used in many web pages. One of the tricky parts about the ordered lists is changing the marker from numbers to alphabet letters and vice-versa the other tricky part is the starting number/letter of the ordered list.Let’s say you want to have a table of contents with numbers for the main items and then letters for the subitems or you have started an ordered list and then wish to insert a photo or a table in your post/page and continue with the ordered list numbering.

Here is an example of the default ordered list.

  1. Lion
  2. Tiger
  3. Cat

if you switched to the text editor in your WordPress dashboard you will find this HTML code:

To switch to an alphabetical ordered list all you need to do is specify the type of the order list, check the below code:

Now you get the idea of how this works, you can use the following types for ordered lists:

  • type=”a” for lower case letters.
  • type=”A” for upper case letters.
  • type=”i” for Roman lower case numbers.
  • type=”I” for Roman upper case numbers.

To start the ordered list with a number other than one, check the example below:

  1. Lion
  2. Tiger
  3. Cat

The HTML code behind this is:

GET MORE STUFF 
IN YOUR INBOX
WordPress Multilingual, Performance, SEO, Reviews and HOT Deals. One email per week!
Stay Updated
Give it a try, you can unsubscribe anytime.
Close
GET MORE STUFF
IN YOUR INBOX
WordPress Multilingual, Performance, SEO, Reviews and HOT Deals. One email per week!
Stay Updated
Give it a try, you can unsubscribe anytime.
We have created the 1st online directory for the Multilingual Themes
CLICK HERE

WE'RE SOCIAL!

Follow us on..