Display posts by alphabetical order

You can change the sort order on a category archive page to show posts by title (A-Z) by adding this code to your child theme’s functions.php: /* Sort posts by title for a specific category */ function change_category_order( $query ) { //Sort all posts from category with id=3 by title if($query->is_category(‘3’) && $query->is_main_query()){ $query->query_vars[‘orderby’] = … Read more

Adding markup to sub menu based on class

Here is your code <script> $(document).ready(function(){ $( “.product-menu .sub-menu-level-1” ).after( “<div>SHOW ONCE</div>” ); }); </script> This will automatically add the div if the parent has a class name of product-menu. Let me know if I miss something. and if this solved your issue, give a thumb