Disable click on full calendar events

Home Forums Calendar Products Events Calendar PRO Disable click on full calendar events

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1356592
    Mel
    Participant

    Hi,
    I am re-doing an old site and some of the code snippets are gone…. What I am trying to do is disable clicking
    on events in the full calendar.

    I am trying to do this from code support gave me before:

    1. Make a copy of the single-event.php template. It is located at wp-content/plugins/the-events-calendar/src/views/month/single-event.php
    2. Make a new folder in your theme called tribe-events
    3. Make a new folder in that one called month
    4, Drop your copied single-event.php file in that last folder

    Now that the template is in your theme, you can modify it to suit your needs. In this case, You should modify line 196 to be like this >

    <?php echo $title ?>

    I have completed the 3 tasks but do not know where to find the single-event.php for the month?
    See attached pics! Is the code still correct at line 196?

    Thanks
    Mel
    [email protected]

    #1357177
    Cliff
    Member

    Hi, Mel.

    The line number has surely changed since whenever you were last advised.

    Could you please send a link to view this at your site and explain (possibly with an annotated screenshot) exactly what you want removed. This way, I’ll be able to advise you accurately.

    #1358114
    Mel
    Participant

    Hi,

    Problem: As I stated above, I want to disable clicking on events in the full calendar. Pro version.

    I tried the steps above that were suggested to me before. the pics show the ftp directory of my site.
    But my ftp directory does not match the steps suggested before. So what do you suggest.

    Thank You
    Mel

    #1358570
    Cliff
    Member

    This reply is private.

    #1360535
    Mel
    Participant

    Hi

    1. I WANT TO DISABLE THE EVENTS FOR THE MONTH VIEW….

    2. WHAT DO U SUGGEST?

    THANKS
    MEL

    #1360604
    Cliff
    Member

    Thanks for clarifying.

    https://github.com/moderntribe/the-events-calendar/blob/4.6.1/src/views/month/single-event.php#L196 — turns out to still be Line 196…

    Replace this:

    <a href="<?php echo esc_url( $link ) ?>" class="url"><?php echo $title ?></a>

    with this:

    <?php echo $title ?>

    If you want the “Continue reading” link removed from the tooltips, please also add this custom CSS to your site:

    body.post-type-archive-tribe_events #tribe-events-content.tribe-events-month .tribe-events-tooltip p.link-more {
    display: none !important;
    }

    Please let me know how this goes for you.

    #1360606
    Cliff
    Member

    I forgot to mention that you should make the first change by following our Themer’s Guide so you don’t lose this customization again in the future with each update.

    And in case you don’t know how to add custom CSS to your site:
    You can add custom CSS code via your child theme’s style.css file, via WordPress 4.7’s Customizer CSS settings, or via a third-party plugin (not guaranteed or supported by us), like:

    • SiteOrigin CSS (helps you visually build CSS selectors via its Inspector and Visual Editor, if that’ll help you)
    • Simple Custom CSS
    • Jetpack (supports regular CSS and the LESS and Sass pre-processors)

    If you’re not a CSS expert, Jetpack’s Custom Design reference may prove helpful.

    Please let me know how it goes for you.

    #1363051
    Mel
    Participant

    Hiii..

    Sorry for the late reply…. Thank you for update everythings fine so on to another issue
    in a new topic…

    Thanks

    #1363478
    Cliff
    Member

    I’m glad to get this one sorted out for you! 🙂

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Disable click on full calendar events’ is closed to new replies.