Woocommerce: deleted single-product.php, everything still works. How is it possible?

Themes can override WooCommerce default template pages, to customize the appearance of those pages easily. There should be a folder within your theme folder called woocommerce. WooCommerce checks for template files within that folder first. If a file doesn’t exist there, it loads it’s own template file. Edit: If you want to customize those pages, … Read more

Show widget location borders for development

If your theme is any good, no code at all will be rendered for empty widget areas, so if you want them all to show, you must populate them. There are off course browser tools that will highlight widget areas, but they will only show one at a time, while you presumably want an overview … Read more

How do i get all author posts on custom post type list

The author key/value query won’t work. Try modifying the query by moving the query out of the meta query like so: array( ‘author’ => $author, ‘meta_query’ => array( ‘relation’ => ‘OR’, array( ‘key’ => ‘leads_status’, ‘value’ => ‘-1’, ), array( ‘key’ => ‘leads_status’, ‘compare’ => ‘NOT EXISTS’, ) ) )

Widget Script Loads at Bottom of Page

That’s expected behaviour, since you’re calling wp_enqueue_script mid-page, so at that point the <head> ship has sailed, and the only other option is to enqueue in the footer, which is fine. I didn’t spend too much time reading the actual script that you’re enqueuing, but it seems like it it’s doing some document.write() as soon … Read more