Assign Unique Classes To First And Last Menu Items

/ Published in: PHP
Save to your folder(s)

Use this function to filter your first and last menu items and assign them each a specific class name. This is very handy when applying separators in CSS but want to exclude the first and/or last items.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.