Home › Forums › Calendar Products › Events Calendar PRO › Disable click on full calendar events
- This topic has 9 replies, 3 voices, and was last updated 8 years, 6 months ago by
Cliff.
-
AuthorPosts
-
September 28, 2017 at 11:15 pm #1356592
Mel
ParticipantHi,
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 folderNow 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]September 29, 2017 at 8:11 pm #1357177Cliff
MemberHi, 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.
October 2, 2017 at 9:30 pm #1358114Mel
ParticipantHi,
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
MelOctober 3, 2017 at 2:09 pm #1358570Cliff
MemberThis reply is private.
October 6, 2017 at 11:57 am #1360535Mel
ParticipantHi
1. I WANT TO DISABLE THE EVENTS FOR THE MONTH VIEW….
2. WHAT DO U SUGGEST?
THANKS
MELOctober 6, 2017 at 4:05 pm #1360604Cliff
MemberThanks 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.
October 6, 2017 at 4:07 pm #1360606Cliff
MemberI 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.
October 13, 2017 at 12:34 am #1363051Mel
ParticipantHiii..
Sorry for the late reply…. Thank you for update everythings fine so on to another issue
in a new topic…Thanks
October 13, 2017 at 2:16 pm #1363478Cliff
MemberI’m glad to get this one sorted out for you! 🙂
-
AuthorPosts
- The topic ‘Disable click on full calendar events’ is closed to new replies.
