• I’m working on my own theme and for some reason when I enter CSS classes into Menu items it doesn’t print it to HTML. Is there a way to call the menu css classes to print them into an area of your template?

    I’ve googled all over the place, and even tried looking at the standard wordpress themes and can’t figure out how to get them to appear.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Are you using a custom menu walker to print the menu’s HTML?

    Thread Starter Kerosity

    (@kerosity)

    I’ve never heard of a custom menu walker until I started searching for a solution to this problem. I tried reading the docs for the menu walkers but I didn’t fully understand them. (I’m learning PHP/Wordpress as I go – pretty new to it all.)

    The only thing I did was follow a guide to create the menu and register it in the functions.php

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    How are you getting the menu?

    Thread Starter Kerosity

    (@kerosity)

    Okay I read up a little bit more on the walker class. “I think” I understand it enough to say I’m not using it.

    When I registered my menu I just used the theme_location and nothing else.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Rather strange. Are you able to post a link to the site?

    So, when you tried using a default theme did it print out the classes?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘What makes Menu CSS Classes print to html?’ is closed to new replies.