wp_nav_menu(), how to change class?

I’m building a menu for my website. The static is looking like this: <nav> <ul id=”menu”> <li class=”item_1″><a href=”#”>Item 1</a></li> <li class=”item_2″><a href=”#”>Item 2</a></li> <li class=”item_3″><a href=”#”>Item 3</a></li> <li class=”item_4″><a href=”#”>Item 4</a></li> <li class=”item_5″><a href=”#”>Item 5</a></li> <li class=”item_6″><a href=”#”>Item 6</a></li> <li class=”item_7″><a href=”#”>Item 7</a></li> <li class=”item_8″><a href=”#”>Item 8</a></li> </ul> I’ve been able to understand how … Read more

Get the children of the parent category

I’m trying to get all the children categories to display in this loop but I’m struggling with the code. This is what I have so far. <?php $args=array(‘orderby’ => ‘name’, ‘order’ => ‘ASC’); $categories=get_categories($args); foreach ($categories as $cat) { ?> <dt><a href=”#” class=”customer-acquisitiontop” id=”<?php echo $cat->slug; ?>” data-filter=”.<?php echo $cat->slug; ?>”><h2><?= $cat->cat_name; ?></h2></a></dt> <dd><div class=”services”> … Read more