Hi, what does your code look like that you’re using to try to add in the extra custom element? You can use https://pastebin.com/ to share the code in here so it can be inspected further.
I tried the following code:
https://pastebin.com/7dw0SFsz
But it seem the “_two” function is jus overwriting the first one. :/
You have function sp_header_custom_text_output-two() yet in the add_action it is sp_header_custom_text_output_two if you change one of those to match the others does it work then?
No, unfortunately still it doesn’t work. The second function seems to overwrite the first one. π
Hi, checked into this further and it looks like the Powerpack is a paid plugin/extension so I’m not able to test it. Additionally, paid software isn’t supported on this forum.
Your best bet to finding a solution for this would be contacting WooCommerce where you purchased the product from:
https://woocommerce.com/contact-us/
Job a11n
(@jobthomas)
Automattic Happiness Engineer
Hey @abi00 I’m not sure if you’ve contacted our support team yet, but I can confirm that this is not possible with Powerpack out of the box. As for getting help on Stu’s gist, I would suggest to leave a comment at the link you’ve shared to get input.
Hope you have already found it by yourself, but I just faced the same problem and the solution was quite simple:
$components['text2'] in your second function
-
This reply was modified 6 years, 5 months ago by
vzletit.
-
This reply was modified 6 years, 5 months ago by
vzletit.