• Resolved wpuser10

    (@wpuser10)


    Hi,

    1) Theme is using custom styles and templates for “The Events Calendar”, so that there is no need to load Tribe Events Styles. Is there a hook or other recommended solution to make it possible to set the Default stylesheet used for events templates to Skeleton styles?
    The problem is that after theme activation user needs to go to “WP admin -> Events -> Settings -> Display” and manually set it to “Skeleton Styles”, otherwise layout is not looking correct.

    2) There is also need to set WP admin -> Events -> Settings -> Display -> Events template -> Default Events Template automatically after theme activation.
    Is there a hook or other recommended solution to make it possible to set the default Events template? The problem is that after theme activation user needs to go to “WP admin -> Events -> Settings -> Display” and manually set “Events template” to “Default Events Template”, otherwise layout is not looking correct.

    Thanks!

    https://www.ads-software.com/plugins/the-events-calendar/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @wpuser10,

    Thank you for reaching out to us.

    Before we begin, just to set expectations, as you might know, the scope of our support is mostly to get our users started on the right track and to help them in case of issues.

    We unfortunately do not provide complete support for customization.

    With that in mind, here are a couple of pointers that apply to both of your needs:

    There are a couple of ways you could do this.

    The simplest solution would be to replace the value found in the DB table so that the value is set to skeleton style upon theme activation.

    Let us know how that goes.

    Best regards,
    Geoff B.

    Thread Starter wpuser10

    (@wpuser10)

    Hi,

    Thank you for response. Wonder if you could provide a bit more details (or reference to some best code samples for this), for example can it be done with simple hook added to functions.php? Do you have list of available hooks and filters (like for example here: https://docs.woothemes.com/wc-apidocs/hook-docs.html )?

    Thanks!

    Hey @wpuser10,

    One idea might be to dequeue the calendar’s stylesheets using
    https://codex.www.ads-software.com/Function_Reference/wp_dequeue_style

    That would effectively allow you to leave the plugin’s styles out and roll your own stylesheets instead.

    2) There is also need to set WP admin -> Events -> Settings -> Display -> Events template -> Default Events Template automatically after theme activation.

    Shoot, I’m afraid there is no shortcut for this right out of the box. It might be possible to accomplish, but I believe it would require change the plugin’s core code, which is something I certainly would not recommend.

    Will this help you get started? Please let us know. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to change the settings (Settings->Display) after theme activation?’ is closed to new replies.