Title: Invalid code in CMS-navigation
Last modified: August 19, 2016

---

# Invalid code in CMS-navigation

 *  [petehawk](https://wordpress.org/support/users/petehawk/)
 * (@petehawk)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/invalid-code-in-cms-navigation/)
 * Have been validating my code for [](http://www.mermanbarn.co.uk)and have come
   to halt over a bit of code from the cms-navigation plug in.
 * here it is …. (li class=”categories”)(a href=”[http://www.mermanbarn.co.uk/news-offers&#8221](http://www.mermanbarn.co.uk/news-offers&#8221);)
   News
 * (ul) (li class=”cat-item cat-item-1″)(a href=”[http://www.mermanbarn.co.uk/category/news-and-offers&#8221](http://www.mermanbarn.co.uk/category/news-and-offers&#8221);
   title=”View all posts filed under News and Offers”)News and Offers …. (sorry 
   code wasn’t showing using code tag so have subbed () for tag opening and closing
   brackets(?).
 * The offending code is the ul tag after News.
    Two questions …. what do I alter
   where in the cms-navigation pho file to correct this?
 * or … how do I get the category to just show in my menu bar and not the News link
   as the new and offers page is the only category I have.
 * Thanks
 * Pete

Viewing 1 replies (of 1 total)

 *  [icanlocalize](https://wordpress.org/support/users/icanlocalize/)
 * (@icanlocalize)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/invalid-code-in-cms-navigation/#post-1004261)
 * When I check your website ([http://www.mermanbarn.co.uk/](http://www.mermanbarn.co.uk/))
   it appears as 100% HTML clean. Are you using the plugin?
 * If you’re using it in a different place, let me know where. I’d like to have 
   a look at the complete HTML.
 * Regarding the categories, I think that the best solution would be if we just 
   don’t list any category if there’s just one. Having a drop down menu item with
   just one item that is essentially the same as the parent makes little sense. 
   What do you think?

Viewing 1 replies (of 1 total)

The topic ‘Invalid code in CMS-navigation’ is closed to new replies.

## Tags

 * [invalid code](https://wordpress.org/support/topic-tag/invalid-code/)

 * 1 reply
 * 2 participants
 * Last reply from: [icanlocalize](https://wordpress.org/support/users/icanlocalize/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/invalid-code-in-cms-navigation/#post-1004261)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
