How to display WooCommerce category image in my category page banner as a background?

get_post_thumbnail return featured image for post. in order to get a thumbnail of the category, you need to fetch it through term meta. global $wp_query; $cat = $wp_query->get_queried_object(); $thumbnail_id = get_term_meta( $cat->term_id, ‘thumbnail_id’, true ); $image = wp_get_attachment_url( $thumbnail_id ); on the product page, since there can be multiple terms for a single product, you … Read more

how to remove share button from image overlay

First, you have to find out which sources cause these sharing buttons. Is it your theme? Then head over to the customizer of your them and look for an option describing these buttons. If you can’t find an option, check out the theme documentation. Is it a plugin? Depending on the amount of the installed … Read more

Background Image Does Not Display on Page

Based on what’s provided I would suggest doing some var_dump tests on the $bg variable, it would seem that the ternary logic there is equating to false and thus nothing is being assigned to the $bg variable. Do you have a default background image, if the $bgimage field is not set by a user? Also, … Read more