Changing HTML
-
Hi,
First of all, thank you for this easy-to-setup plugin, it’s almost exactly what I need for my custom website. However I need to change a few things.
Is there a way to change the HTML of this plugin for the front-end without editing the plugin itself? Basically I need to change the contents of
products_per_page_dropdown()
function of WPPP_Front_End class. For example, I need the option name “products per page” outside of the select box. Also I would like to change the order in which the form is hooked intowoocommerce_before_shop_loop
(to customize where exactly this form is outputted). So I tried to first remove the function from the hook, but it didn’t work. Here’s the code I tried:add_action('woocommerce_before_shop_loop', 'remove_page_dropdown'); function remove_page_dropdown() { remove_action('woocommerce_before_shop_loop', array('WPPP_Front_End', 'products_per_page_dropdown'), 30); }
I’ve also tried without the class:
add_action('woocommerce_before_shop_loop', 'remove_page_dropdown'); function remove_page_dropdown() { remove_action('woocommerce_before_shop_loop', 'products_per_page_dropdown', 30); }
But no result. Am I doing something wrong or changing the plugin’s source is the only way to do this?
- The topic ‘Changing HTML’ is closed to new replies.