• Resolved Manny

    (@thewebnerd)


    Currently, the lists are marked up as UL instead of OL.
    Is there a way to change it from UL to Ol?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Marc Toensing

    (@marcdk)

    would you say that ol is better? May be an option in a future update.

    Thread Starter Manny

    (@thewebnerd)

    Most definitely.

    Thats what almost all the toc plug-ins uses.

    It is just cleaners and I believe better for seo too( almost 100 percent of the sites I see on page one of Google that use TOC use ol )

    So any thing you recommend I do for now before the next update?

    Also, when do you plan on releasing the next update?

    Plugin Author Marc Toensing

    (@marcdk)

    SimpleTOC will optionally display the TOC as an ordered list. But it is not “clean” and will most likely lead to a problem with nested headings. Especially if the headings start with a H4 or H5. So using ol as a default is from my point of view the best solution.

    This new feature needs to be test. I would say next weekend.

    Thread Starter Manny

    (@thewebnerd)

    Ok that would be great as ordered list is the right markup.

    I look forward to the update this weekend

    Another question I have is how do you get this to display on the sidebar?

    Plugin Author Marc Toensing

    (@marcdk)

    There is no right or wrong here. Meanwhile if you just want to make it look like it’s an offered list use custom css in your theme:

    .simpletoc li {
      list-style-type: decimal;
    }
    Thread Starter Manny

    (@thewebnerd)

    Thanks

    Plugin Author Marc Toensing

    (@marcdk)

    If you want to help you can test this proof of concept branch: https://github.com/mtoensing/simpletoc/archive/listtypeswitcher.zip

    unzip, rename the folder to “simpletoc”, delete the old one (you can download it from the repository later) and replace it with this folder in /wp-content/plugins

    Plugin Author Marc Toensing

    (@marcdk)

    In the end it was a minimal change to the code base. v4.4.2 now has an option to replace the unordered list with an ordered list.

    • This reply was modified 3 years, 2 months ago by Marc Toensing.
    Thread Starter Manny

    (@thewebnerd)

    Cool I just updated it and it is still showing ul. Do I have to use any css for that. Also, i am seeing issue where on pages the plugin is showing all the header but on page post it works.

    Can you confirm and update. Thanks

    Plugin Author Marc Toensing

    (@marcdk)

    As I said: it is an option. You can switch to ok on the block configurations. No css needed.

    If there is another issue please describe that issue in a separate support case with more detailed information. Thank you.

    • This reply was modified 3 years, 2 months ago by Marc Toensing.
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Change from UL to OL’ is closed to new replies.