Remove "Upcoming Events" wording from Shortcode

Home Forums Calendar Products Events Calendar PRO Remove "Upcoming Events" wording from Shortcode

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1433542
    Dan
    Participant

    I 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?

    #1434972
    Sky
    Keymaster

    Hi 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,
    Sky

    #1436488
    Dan
    Participant

    This 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.

    http://test.podmov.com/

    #1437309
    Sky
    Keymaster

    Dan,

    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.
    Sky

    #1456373
    Support Droid
    Keymaster

    Hey 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Remove "Upcoming Events" wording from Shortcode’ is closed to new replies.