How to overwrite the category template in a plugin

I noticed that you’re using is_category() in your function, which means you’re targetting the default/core category taxonomy and not a custom taxonomy, hence you should instead use the category_template hook. E.g. add_filter( ‘category_template’, ‘load_new_custom_tax_template’); function load_new_custom_tax_template ($tax_template) { // I don’t check for is_category() because we’re using the category_template filter. return dirname( __FILE__ ) . … 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