Last active
April 25, 2023 09:32
-
-
Save kosinix/5544535 to your computer and use it in GitHub Desktop.
WordPress: Using a custom nav walker to create navigation menus in plain <a> tags. That is the <ul> and <li> tags are not present. Very useful if you want to create simple links that can be centered with a simple text-align:center on the containing element.
๐ Thank you very much!
Very useful!
Thanks for this. Wanted to create a button link, so added $attributes = ' type="button"';
at line 34.
I'm confused, you call $args
as an array but then you use it as an object? When does it change?
How would i add an 'active' class to the current page?
Thanks ๐
This is really helpful! Thank you so much! By the way, is there an explanation as to what each method do?
Very useful!
Thank you very much!
Thank you, Saved me a lot of time.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
๐ ๐ ๐