Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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! Lance

    #1318395

    Hey 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,
    Ismael

    #1318525

    Hi 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! Lance

    #1318619

    Hi,

    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,
    Ismael

    #1318701

    Thanks, 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?

    #1318883

    Hi,

    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,
    Ismael

    #1319217

    Hello 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! Lance

    #1319459

    Hi,

    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,
    Ismael

    #1319541

    Ismael,
    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! Lance

    #1319575

    Hi,

    Ok. Did you try the latest code or snippet? This will disable the function that disables the plugin settings after setting up the theme.

    // https://kriesi.at/support/topic/the-events-calendar-disable-the-event-search-bar-option-disabled-by-enfold/#post-1319459

    Best regards,
    Ismael

    #1319713

    OK, 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
    Lance

    #1319990

    Hi Lance,

    They should not be there by default. You can temporarily activate Twenty Twenty-One theme to confirm :)

    Best regards,
    Yigit

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.