Stylesheet not being loaded? [closed]

Sometimes CSS changes don’t load all the time, and it requires you to hard reload the page for it to show up for you. Have your hard reloaded your page in your browser? You could be looking at a cached view. Try CTRL+F5 to perform a hard reload.

Loading Canvas & WooCommerce translation file in child theme

There was a syntax error in loading the WooCommerce translations and I managed to get the parent theme translations working by following the same method I used for the WooCommerce translations. function weg_localisation() { unload_textdomain( ‘woothemes’ ); load_textdomain(‘woothemes’, get_stylesheet_directory() . ‘/lang/af_AF.mo’); unload_textdomain(‘woocommerce’); load_textdomain(‘woocommerce’, get_stylesheet_directory() . ‘/woocommerce/i18n/languages/woocommerce-af_AF.mo’); } add_action(‘init’, ‘weg_localisation’);

How to make a text string into a bullet list [closed]

If your string is delimited by a comma , you can explode the string at this point into pieces (an array of items). If your string is separated by something else, such as spaces or | then explode that instead. <?php //assuming your string might look like: “USA, Canada, Japan, Russia” $countries = bp_member_profile_data( ‘field=Countries’ … Read more

Integrating CSS Into a WP Function Call [closed]

Apart from the fact, that the conditional is based on a WordPress option, this is pure PHP, but anyhoo: <?php $show_views = get_option( ‘to_post_views’ ); if ( ‘Yes’ === $show_views ) { echo ‘<div class=”postviews”>’ . getPostViews( get_the_ID() ) . ‘</div>’; } ?>

Errors while Loading Most Recent Version of jQuery

According to this article: “hover” pseudo-event As of 1.9, the event name string “hover” is no longer supported as a synonym for “mouseenter mouseleave”. This allows applications to attach and trigger a custom “hover” event. Changing existing code is a simple find/replace, and the “hover” pseudo-event is also supported in the jQuery Migrate plugin to … Read more

WooCommerce Product Search Error

” Invalid argument supplied for foreach()” . means that the $parents variable is not an array so you can’t loop through it. You should wrap the foreach loop in an if check that verifies that $parents is something valid. <?php $term = get_term_by( ‘slug’, get_query_var( ‘term’ ), get_query_var( ‘taxonomy’ ) ); $parents = get_the_terms($term->parent, get_query_var(‘taxonomy’) … Read more

Filter orders by product in admin

You can simply use the “Search Orders” box on the top right, just enter the product name. Exporting those to csv requires a more tailored approach, not sure if Order/Customer CSV export is up to it (ask WooThemes and they’ll be quick to respond)