Home › Forums › Ticket Products › Event Tickets Plus › Remove price range in event titles
- This topic has 6 replies, 4 voices, and was last updated 9 years, 5 months ago by
James Fountain.
-
AuthorPosts
-
October 28, 2016 at 7:59 am #1184407
James Fountain
ParticipantHello, I would like to remove the price range in event titles. I have found a thread that mentions editing the single-event.php file however when I copy this to my Child Theme into /tribe-events it changes the look of my single event pages.
I would like to keep the look of the page as it is, just remove the price range.
Also, I am aware of the display:none; however this doesn’t work on Internet Explorer and unfortunately, most of the people using this website will probably be using it so will still be able to see the price range :/
If not I will just have to accept the change in appearance and use CSS to get it looking nicer.
October 28, 2016 at 8:01 am #1184413James Fountain
ParticipantThis reply is private.
-
This reply was modified 9 years, 6 months ago by
James Fountain.
October 29, 2016 at 1:34 am #1184818Hunter
ModeratorJames,
I hope you had a great Friday 🙂
You’ll need to edit or create an override (if possible) for /avada/includes/class-avada-eventscalendar.php. Remove or comment out lines 91-94 and the cost should no longer display in the event titles.
<?php if ( tribe_get_cost() ) : ?>
<span class="tribe-events-divider">|</span>
<span class="tribe-events-cost"><?php echo tribe_get_cost( null, true ) ?></span>
<?php endif; ?>Let me know how things go and have a great rest of your weekend. Cheers!
October 31, 2016 at 2:15 am #1185146James Fountain
ParticipantHello,
Thank you for pointing me in the right direction. Unfortunately on Avada’s website they state “You can only copy some files to the child theme. In Avada, we have made a decision to make sure that core logical code which can break the theme is not copied in the child theme. This includes the files inside the includes folder.”
Do you know if I can target this line of code with a hook/action/filter or any other way of removing it, like adding something to my functions.php?
October 31, 2016 at 5:34 pm #1185551Hunter
ModeratorHey James,
Seeing Avada has made customizations to files typically manageable by overwrites, it would be best if you reach out to the Avada authors for assistance on this. Sorry I can’t be of more assistance here and thanks for understanding. Best of luck and if you come up with a resolution, please feel free to share so others can take advantage of that if they so choose.
Have a great Halloween. Cheers!
November 22, 2016 at 8:35 am #1195898Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
This reply was modified 9 years, 6 months ago by
-
AuthorPosts
- The topic ‘Remove price range in event titles’ is closed to new replies.
