Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    Thread Starter abidin.145

    (@abi00)

    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?

    Thread Starter abidin.145

    (@abi00)

    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 5 years, 4 months ago by vzletit.
    • This reply was modified 5 years, 4 months ago by vzletit.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to add a second Custom Header Element’ is closed to new replies.