Code sent by 'TheEventsCalendar' Not Working

Home Forums Ticket Products Event Tickets Plus Code sent by 'TheEventsCalendar' Not Working

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1349731
    Tom Webber
    Participant

    Hi There,

    Previously, Patricia sent me some .php code to enter to my theme on WordPress. I’ve installed the child theme to make these changes however they are not changing the websites. I’ve used some screenshots below where I’m trying to change the words ‘Tickets’ when making an Event Purchase (the link sent me previously was this – https://gist.github.com/nefeline/0c6b63cfd723119f4b969ecf62ca7b55)

    Please see the photos attached (also labelled in order) to show you my actions taken to make these changes.

    Please let me know how to move forward.

    Thanks

    #1349984
    Andras
    Keymaster

    Hello Tom,

    Thanks for reaching out!

    I just tested that snippet with an Avada child theme and it did its job.

    Though I doubt this would be the issue, I see your ET+ plugin is an older version. It’s recommended that you update that to the latest.

    The snippet that was provided to you by Patricia needs to be copied into the functions.php file of the Avada child theme. I did it like this.

    If that doesn’t work for you than you can try the Say What plugin, which can be used for the same purpose without any coding.

    Once you installed and activated it go to Tools > Text changes in your WP dashboard.

    Then choose ‘Add new’ and fill out the form like this. Save and check if that did the trick. (I tested this as well, it worked.)

    Looking forward to hearing the results. 🙂

    Cheers,
    Andras

    #1350118
    Tom Webber
    Participant

    Hi,

    The original php that was sent to me was not the same as the image you have shown in the above image. It only seems to be half of that (please bare in mind that I do not know coding, I use themes for WP).

    Moving forward from that I have download ‘Say What? Plugin’ and this has not changed the words TICKETS where it needs to.

    Appreciate your help with this as I can’t move forward with my business until these amendments are made.

    Would it be possible for you to write the entire .PHP for the two things I asked from Patricia? (Change words of ‘Tickets’ to ‘Book Course’ + Removal of Google Calendar & iCal Buttons)

    ET+ also updated.

    Thanks

    #1350556
    Andras
    Keymaster

    Hi Tom,

    No worries about not being a coder. We all started like that. 😉

    On the ‘Tickets” change:

    The screenshot I sent you is from the functions.php file of the Avada child theme. The first 2 blocks are automatically included I believe, it comes with the child theme.

    And this is the part handling the text change:

    https://gist.github.com/theeventscalendar/734adb9e94f11b940e5f

    (If you already have something in your functions.php file, then you don’t need the opening “<?php” tag, but you might have figured that already.

    The Say What plugin is supposed to do the same with a user interface.

    Please note that the strings are case sensitive, so “tickets” is different from “Tickets”.

    What can also be the case that the recent version of Avada did some changes, which sabotages this. I’m trying to check that for you.

    To remove the export button:

    This snippet will help you in that. As usual paste it in your functions.php file without the opening “<?php” tag:

    https://gist.github.com/andrasguseo/422645175706fea728df568cd63b5b0c

    Try these and let me know if you need further assistance.

    Cheers,
    Andras

    #1350567
    Tom Webber
    Participant

    Brilliant!

    It hasn’t come to my attention until now that I was entering .php code into the .css section of WP Editor!

    Could you also provide a removal code for the ‘Share this Story’ section on each event page?

    On the right hand side of the event – the headers for ‘Details’ and ‘Venue’ are both set in green. How can I change these to the colour #ea442c?

    Thanks again!

    #1350626
    Andras
    Keymaster

    Hey Tom,

    Happy to hear you got that figured! Awesome!!!

    Could you also provide a removal code for the ‘Share this Story’ section on each event page?

    Unfortunately I cannot. That block on the page is not generated by our plugins. Might be it is driven by the Avada theme (Fusion something) or some other plugin, so you will need to look around if there is a setting for that. This would definitely be the preferred solution.

    If you don’t find any setting for this, then as an alternative you can use this CSS snippet to hide that box. It will still be there in the code, but it will not be visible.

    Paste the following snippet into the Avada child theme’s style.css file or somewhere in a box in Avada settings where you can do css overrides. (Not the functions.php this time. 😉 )

    .single-tribe_events .fusion-sharing-box {
    display: none;
    }

    On the right hand side of the event – the headers for ‘Details’ and ‘Venue’ are both set in green. How can I change these to the colour #ea442c?

    Likely there is a setting for this in Avada. If not, as an alternative you can copy this to your style.css file (or the box).

    .single-tribe_events .tribe-events-single-section-title {
    background-color: #ea442c !important;
    }

    Hope this helps!

    Cheers,
    Andras

    #1350645
    Tom Webber
    Participant

    Thank you very much!!

    #1350830
    Andras
    Keymaster

    Hey Tom,

    You are very welcome! Happy I could help.

    Since this is marked resolved I am going to close this ticket, but if you need anything else related to this topic or another please create a new ticket and we’ll be happy to help.

    Cheers,
    Andras

    PS: If you like our plugins, and you didn’t yet do so 🙂 we would be happy to receive a review in the wordpress.org repository. Thanks!
    https://wordpress.org/support/view/plugin-reviews/the-events-calendar/
    https://wordpress.org/support/view/plugin-reviews/event-tickets/

    PS2: We’d be also grateful if you would give us feedback on your satisfaction with support. Just click on one of the classy looking emojis below. 🙂 If you can spare a few words, that’s even better. Doublethanks!

     

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Code sent by 'TheEventsCalendar' Not Working’ is closed to new replies.