Home › Forums › Ticket Products › Community Tickets › Change Woocommerce Label in Community Event Submission Form
- This topic has 11 replies, 3 voices, and was last updated 9 years, 9 months ago by
Hunter.
-
AuthorPosts
-
July 7, 2016 at 12:31 am #1136409
Carlas
ParticipantHow do I do this in my theme? I am not a coder but I am learning everyday. Please help me figure this out.
Thank you
July 7, 2016 at 11:57 am #1136765Hunter
ModeratorHey Carlas!
I’d be happy to help you out 🙂
Can you send over a screenshot of the label you’re referring to just so I make sure I give you the correct answer the first time around?
In the mean time, you’ll need to familiarize yourself with the process of creating and saving custom templates. Our Themer’s Guide does a great job of this.
Reply back and I’ll give you the exact file and line you’ll need to change. Thanks for choosing us for your event & ticketing needs and have a great rest of your day.
Cheers!
July 8, 2016 at 2:04 am #1137140Carlas
ParticipantThis is the label I would like to change to “Sell Tickets” instead of Woo Commerce
July 8, 2016 at 11:56 am #1137477Hunter
ModeratorHey Carlas,
Thanks for the response. Try adding the following code to your theme’s functions.php file. Let me know how it works and if you have any more questions 🙂
/**
* Change WooCommerce tickets label
*/
function change_woo_label() { ?><script>
jQuery(document).ready( function ( ){
jQuery('input[value="Tribe__Tickets_Plus__Commerce__WooCommerce__Main"]').next().html('Sell Tickets');
});
</script>
<?php
}
add_action('wp_head', 'change_woo_label');July 8, 2016 at 6:03 pm #1137644Carlas
ParticipantI put the snippet in my themes function.php file and it crashed my website. I removed the snippet then updated my file and my website is still not working now. How do I restore it?
July 8, 2016 at 6:42 pm #1137647Carlas
ParticipantOk, I got my site back up but I still need to change that label, if possible. Please help
July 9, 2016 at 3:13 pm #1137850Hunter
ModeratorHey Carlas,
Sorry to hear you ran into troubles but I’m glad your site is back up! Can you try adding the snippet I provided in my previous response to the Twenty Sixteen theme’s functions.php file and see if it works? I tested it real quick and it worked for me.
If you want, copy/paste your theme’s functions.php file to Pastebin and share a link. I’d be happy to see why it didn’t work and possibly provide a solution.
I do want to point out that I’m limited on the amount of support I’m able to provide, so if this doesn’t work, you might have to begin looking for additional resources to help get the label changed.
Keep me posted and have a good rest of your weekend!
July 10, 2016 at 1:06 pm #1137955Carlas
ParticipantThis reply is private.
July 11, 2016 at 11:27 am #1138265Hunter
ModeratorHey Carlas,
Thank you for sending that over. It looks like you should be able to drop the code I provided at the bottom of your functions.php file. The best way for you to test would be using a text editor so you’re able to undo changes that cause your site to “crash”. You might also want to contact your theme author to see if they have a better idea of where to insert the code.
Let me know how it goes and have a good Monday!
July 12, 2016 at 12:33 am #1138559Carlas
ParticipantThank you, The code you sent me worked!!! I really appreciate it! I double spaced before entering the code the first time but this time I just spaced one time and put the code in there and it worked. Thank you! You guys helped me tremendously!!!
July 12, 2016 at 12:18 pm #1138834Hunter
ModeratorCarlas,
I’m so glad it worked out for you! Sometimes it takes a bit of testing to get it working properly. I’ll close this thread out but please open a new one if you have any more questions or concerns 🙂
-
AuthorPosts
- The topic ‘Change Woocommerce Label in Community Event Submission Form’ is closed to new replies.
