Site logo

Archived topic

Adding text via hook on woocommerce category page

5 replies · Started by Andrew on April 4, 2022

Viewing posts 1–6 of 6

I'm trying to add some custom text, preferably varying by category, but I'm struggling to find the required hook. I assume it's a hook I need?

I've added a link in the private information for an example - I'd like the text above the product links? Or below if above isn't possible.

Any pointers much appreciated!

Thanks.

Thanks! That's done the trick.

One semi-related question when it comes to Elements: When should I use the Element type Block and when should I use Hook? Because it feels like as you can use hooks in Blocks there is no need to ever use the Hook element - Or is there?

When should I use the Element type Block and when should I use Hook?

In hook element, you can use JavaScript/PHP/CSS/HTML.

Block element is similar to hook element, but the content will be block based, not code based.

Hope I made it clear :)

Thanks - All clear :)

Great :)

This archived topic is closed to new replies.