• Resolved andvines99

    (@andvines99)


    I am using the following code snippet to change labels on a plugin for group purchases. We have an issue with the labels running on to 2 lines and would like a line break.
    See https://www.public-montessori.org/product/coaches-training-spring-2023/
    We’d like the checkbox and ‘Multiple purchases, or purchases for other(s)’ on a second line. (CSS doesn’t work).

    Below is the code snippet. How can I add a break to this to put the second option on another line? Thank you for any help.

    add_filter( 'wdm_gr_single_label', function(){
    // @todo Change the text to your individual label
    return __( 'Individual purchase for me', 'wdm_ld_group');
    });
    
    add_filter( 'wdm_gr_group_label', function(){
    // @todo Change the text to your individual label
    return __( 'Multiple purchases, or purchases for other(s)', 'wdm_ld_group');
    });

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Ilia .a11n

    (@iliadio)

    Hi there,

    As far as I understand, you are trying to edit some text strings on a plugin you are using – I have a couple of alternatives to recommend here:

    1) Reach out to the plugin’s support team for assistance
    2) Use a plugin like Loco Translate to edit text strings. I know it may sound strange to “translate” in your own language, but this is the best way to customize WooCommerce text strings, as the edits will not be overwritten when plugins are updated.

    If this doesn’t help, and you still need assistance with your snippet:

    Custom coding is outside the scope of our support policy, but our developer resources portal can help get you going: https://developer.woocommerce.com/

    I will leave this thread open in case a community member can assist with this.

    You can also visit the WooCommerce FB group – https://www.facebook.com/groups/advanced.woocommerce/ – or the #developers channel of our Community Slack – https://woocommerce.com/community-slack/ – We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, too.

    Hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Snippet add to function’ is closed to new replies.