Viewing 5 replies - 1 through 5 (of 5 total)
  • I believe you would need the Open Hours plugin developer to either
    a.) add that to the code, so send him the link to the documentation
    or
    b.)tell you where to put it inside their code.
    I don’t know how the plugin works but if it outputs to one page, you could exclude the path from caching on the caching page. (example: tell it not to cache /open-hours if the url you found them at was https://www.francesco.com/open-hours

    tim

    Thread Starter Francesco

    (@fcolombo)

    Hi Tim, thank you for your reply.

    I did get in touch with the plugin developer.
    He is suggesting to

    place that function just before the markup is printed. So in the Widgets widget() method

    I am not entirely sure what it means, but will look into it.

    As per the plugin, I am outputting a “we are open” or “closed” message in the footer (plugin takes the WP timezone as a reference).
    I thought about using the WF exclusion tool, but don’t really know if, for example, I can exlude the whole footer.

    I’m not sure you can exclude that either. The plugin developer seems to be asking you to edit code in the theme, but again, I’m not comfortable telling you how to edit another theme creator’s files. I know if I had to, the first thing I would do is make a backup of the files I was messing with. ??

    What theme is it?

    tim

    Thread Starter Francesco

    (@fcolombo)

    It’s a WooThemes theme (Resort).
    I’ll wait for more instructions from the plugin developer.
    Will keep you posted when I get it sorted.
    Thanks again Tim!

    Let me know what they say:

    tim

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to implement doNotCache() in Opening Hours Plugin’ is closed to new replies.