How to add ul class on nav

It’s simple just you need to add items_wrap parameter and add or edit class attr: wp_nav_menu( array( ‘theme_location’ => ‘top-menu’, ‘container’ => false, ‘items_wrap’ => ‘<ul class=”nav your_custom_class”>%3$s</ul>’, ));

How to see files in directories in “Edit Themes” screen

There is not a way to do this without modifying the core. You should see .php files that are in subdirectories, but you won’t see anything above the root theme directory for .css files, and you won’t see any JavaScript files. If you take a look at wp-admin/theme-editor.php, the relevant lines are… <?php $allowed_files = … Read more

WooCommerce get physical store address

The physical address of the store (and many other settings) are stored in WP’s options table (wp_options where “wp_” is the table prefix being used on the site). The option names are: woocommerce_store_address woocommerce_store_address_2 woocommerce_store_city woocommerce_store_postcode woocommerce_default_country The tricky thing is the woocommerce_default_country value. That stores the country AND state/province info depending on your selection … Read more

Disable plugins on cron and ajax page

I experienced a similar problem with an Ajax request. There are a couple of important things to note. Allow me to first state the obvious: Make sure that your code using the option_active_plugins filter is inside your mu-plugins folder. It will not work for if your plugin is a regular plugin. Not even if you … Read more