Viewing 15 replies - 1 through 15 (of 17 total)
  • Hey Ryan. I’m not sure if the Before/After HTML can be targeted specifically to the broader calendar (but not sub-events)…let me see if our dev Jonah has any suggestions here. Stay tuned.

    Hey slowfoodc, have you tried editing the wp-content/plugins/the-events-calendar/views/ecp-single-template.php – taking out the tribe_events_before_html() and tribe_events_after_html() tags? Make sure if you make the change that you make a copy first and place in an ‘events’ folder in your theme.

    Thread Starter slowfoodc

    (@slowfoodc)

    Thanks very much for the reply. That did not seem to work. After backing up the file, I removed the following code

    <?php tribe_events_before_html() ?>
    <?php tribe_events_after_html() ?>

    That did not unfortunately did not solve the problem. Per your last sentence, I then created a folder named ‘events’ (there was no folder like this in my theme) within my theme file with the same modified ecp-single-template.php file. Again, no luck.

    Did I understand your steps correctly?

    Thanks,
    Ryan

    Hey Ryan, that should work, I just tested it and it works for me. Make sure you are running the latest version of the plugin. And yes, any edits you make to the template you want to make inside a copy of ecp-single-template.php in an ‘events’ folder in your theme.

    Make sure to clear your cache too!

    Thread Starter slowfoodc

    (@slowfoodc)

    Ok. Maybe I’m not getting the folder right. Which domain should it go in, the latter correct (using Organic Theme’s Restaurant theme)?

    1. slowfoodchicago.org / subdomains / dev / httpdocs / wp-content / themes / events

    2. slowfoodchicago.org / subdomains / dev / httpdocs / wp-content / themes / organic_restaurant / events

    And there is no setting within the plug-in to change where the plug-in ‘looks’ for this esp-single-template.php file?

    Thanks again

    You would change #2 – not sure why you have #1, that doesn’t seem like it should be there…

    Nope, there’s no setting within the plugin to change this.

    Thread Starter slowfoodc

    (@slowfoodc)

    I created. My theme did not have an events folder so I created.

    Right, if you wanted to modify the file, you would make a copy and place in an ‘events’ folder within your theme folder ‘organic_restaurant’ like you have in example #2. So that should work.

    Thread Starter slowfoodc

    (@slowfoodc)

    Right. No luck, I will keeping digging I guess

    Thanks

    What are you using for your template in Settings > The Events Calendar?

    Thread Starter slowfoodc

    (@slowfoodc)

    I took screenshots of the settings. They are available here:

    https://farm8.staticflickr.com/7271/7049185399_eb89a8727c_c_d.jpg
    https://farm6.staticflickr.com/5034/7049185337_cc7c33a3c6_c_d.jpg

    Happy to provide more info if needed.

    Thread Starter slowfoodc

    (@slowfoodc)

    Also, I did modify the plug-in to use post categories and also to show events in the main post loop per the code here:

    https://tri.be/show-your-events-in-the-main-post-loop/
    https://tri.be/integrating-wordpress-categories-tags-with-your-events/

    Thread Starter slowfoodc

    (@slowfoodc)

    Any other thoughts on what might be causing this to show? Posted my template settings above. Thanks!

    Modifying the main loop shouldn’t causing an issue. Please email jonah [at] tri [dot] be with WP admin and FTP access and I’ll take a closer look. And, is it ok if I make modifications to fix this?

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘[Plugin: The Events Calendar] Can "add HTML before calendar" NOT be shown on individual ev’ is closed to new replies.