WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] remove id & class from menu and pages (3 posts)

  1. Cammy_WP
    Member
    Posted 3 years ago #

    <li id="menu-item-55" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-55">
    
    <li class="page_item page-item-37">

    the menu and pages creates those id's and classes i have no use.
    want to keep the html clean
    just want
    <li>
    how i can get rid off those id's and classes?

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    You can't - unless you want to create your own custom menu or page listing functions.

  3. dompl
    Member
    Posted 2 years ago #

    This might help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags