Home › Forums › Calendar Products › Events Calendar PRO › Remove "Upcoming Events" wording from Shortcode
- This topic has 5 replies, 2 voices, and was last updated 8 years, 2 months ago by
Dan.
-
AuthorPosts
-
January 23, 2018 at 8:12 am #1433542
Dan
ParticipantI am embedding list view via a shortcode, and my side already has a section heading titled Upcoming Events.
The shortcode automatically also ads the words “Upcoming Events” below my heading, so it is redundant.
How do I modify the shortcode to hide this text, and go straight to embedding the list?
January 24, 2018 at 11:32 am #1434972Sky
KeymasterHi Dan!
Unfortunately, there are no attributes in the shortcode for controlling the page title. However, there’s a couple of ways you can go about hiding it.
The first method is to create a custom template for that view and remove the title markup. Here is a knowledgebase article explaining how to do that for exactly your circumstance: https://theeventscalendar.com/knowledgebase/altering-or-removing-titles-on-calendar-views/.
Another method, although maybe a bit “hacky,” is to simply hide it with CSS.
For example:
.page-id-245 .tribe-events-page-title {
display: none;
}
You would just need to replace the number in “.page-id-xxx” to match your particular page.
Let me know if either of these methods works for you!
Thanks,
SkyJanuary 25, 2018 at 2:24 pm #1436488Dan
ParticipantThis is great, css was spot on, and easy!
Any way for it to just show the events instead of everything else? Ideally
would also be hiding the checkbox to “show only first…”, hiding the
Previous Events wording above and below, and hiding the Export Events.January 26, 2018 at 10:46 am #1437309Sky
KeymasterDan,
Glad that worked for you! As far as hiding everything else, your best bet would be to make a custom template and remove the parts that output those elements. You could hide it all with CSS, but that would not be the most efficient way to do it.
There is a setting to hide the “show only first” checkbox. In Events > Settings > “General” tab, uncheck the setting “Front-end recurring event instances toggle.”
If you want to create a custom template, check out our Themer’s Guide. You basically just need to copy the “list/content.php” template into your child theme and remove a few lines of code.
Thanks, and let me know if you have any other questions about it.
SkyFebruary 17, 2018 at 8:35 am #1456373Support 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 -
AuthorPosts
- The topic ‘Remove "Upcoming Events" wording from Shortcode’ is closed to new replies.
