Tagged: enfold, the events calendar
-
AuthorPosts
-
August 24, 2021 at 6:58 pm #1318173
Hello,
Regarding Enfold and The Events Calendar Pro: The plugin authors advertise an option to “Disable the Event Search Bar” that displays at the top of the calendar it creates. This option is supposed to be located on the “Display” tab of the plugin’s settings, toward the bottom, near the “Hide Related Events” option.
On my Enfold site, this setting does not appear. I wrote to TECpro support wondering if they had somehow removed it. They wrote back, saying, “This option is still available as a Basic Template Setting under Events > Settings > Display, however, the Enfold theme hides this option. I’m not exactly sure why — it may be worth asking them via their support forum.”
Does Enfold actually hide this option? If so, I’d be interested in why and how it might be restored. If not, then I’d appreciate suggestions as to what’s going on.
Thanks, as always! LanceAugust 26, 2021 at 7:46 am #1318395Hey Lance,
Thank you for the inquiry.
You can add this snippet in the functions.php file to disable the function that removes the additional settings.
remove_action( 'tribe_display_settings_tab_fields', 'avia_events_display_tab', 10 );
This function is created to keep the layout of the calendar view intact.
Best regards,
IsmaelAugust 27, 2021 at 2:39 am #1318525Hi Ismael,
Thanks for sending this. Alas, when I added it as the last line of my Enfold child theme’s functions.php file, I received a critical error message and was unable to access my WordPress admin dashboard until I restored the previous functions.php file via FTP. I’m copying the content of the file than caused the problem in the private content box below, in hopes that you could take a look and advise.
Thanks! LanceAugust 27, 2021 at 11:13 am #1318619Hi,
We do not see any syntax error in the file. Did you copy the code directly from this forum? Please make sure that the single quotes or other characters in the code are not getting converted to something else. The conversion usually happens when the snippet has been copied directly from an email.
Posting the actual error here in the forum should also help.
Best regards,
IsmaelAugust 27, 2021 at 5:51 pm #1318701Thanks, Ismael. So you were quite correct, the single quotes somehow got screwed up in the copying and pasting. I fixed that. The functions.php with your snippet is now loaded and so far there are no more critical errors. The site seems to be working fine.
The problem is that the added snippet does not seem to have accomplished anything, since the “Disable the Event Search Bar” has not been restored to the The Events Calendar Pro “Display” panel.
I have placed a Dropbox link to the modified functions.php file in the private content box below in case that would help, along with a link to our events page.
Next step?August 30, 2021 at 4:34 am #1318883Hi,
Thank you for the update.
What happens when you remove the avia_events_display_tab and avia_events_general_tab functions from the enfold/config-events-calendar/config.php file? These functions use the tribe_display_settings_tab_fields and the tribe_general_settings_tab_fields filters respectively to remove a few options options from the display and general tabs.
Best regards,
IsmaelAugust 31, 2021 at 5:52 pm #1319217Hello Ismael,
Is there a way to remove these functions via my Enfold child theme? Perhaps some code for the functions.php file in the child theme?
I’m a little hesitant to venture into modifying the theme itself.
Thanks! LanceSeptember 2, 2021 at 9:15 am #1319459Hi,
Did you try the suggestion above? Removing the functions directly should enable the plugin settings back. Unfortunately, we are not yet sure why the previous suggestion above is not working. We might have to remove the hooks after the theme setup. Please try this snippet in the functions.php file.
add_action("after_setup_theme", function() { remove_action( 'tribe_display_settings_tab_fields', 'avia_events_display_tab', 10 ); remove_action( 'tribe_general_settings_tab_fields', 'avia_events_general_tab', 10 ); }, 999);
Best regards,
IsmaelSeptember 2, 2021 at 6:17 pm #1319541Ismael,
I didn’t “try the suggestion above.” I instead, in my previous message, I asked how “to remove these functions via my Enfold child theme?” Not being a WordPress coder, I’d need, if possible, the exact code to place in my child theme functions.php file.
Thanks! LanceSeptember 3, 2021 at 4:45 am #1319575Hi,
Ok. Did you try the latest code or snippet? This will disable the function that disables the plugin settings after setting up the theme.
Best regards,
IsmaelSeptember 4, 2021 at 7:21 am #1319713OK, so I tried adding the latest code/snippet to the Quick CSS box in my Enfold child theme. No result. Then I tried adding the latest snippet at the end of the functions.php file in my Enfold child theme. There was a result, but not the desired result. The two last options on the TECpro Display tab disappeared. When I removed the snippet, they reappeared. See screenshots.
Without snippet: https://www.screencast.com/t/cKrwmr1x4GP
With snippet: https://www.screencast.com/t/JLTIqCqhs
LanceSeptember 7, 2021 at 3:07 pm #1319990 -
AuthorPosts
- You must be logged in to reply to this topic.