• Mark

    (@skilettings)


    I discovered this plugin on the wpbeginner website and thought it was the answer. Having played with it, I’m really impressed. Unfortunately, I get some strange display issues on the front-end where the calendar dates jump down a row when dates are selected.

    It also seems to load unnecessary code on all pages on my site rather than only on the pages where the calendar is displayed. I’ve opened a ticket for this, so hopefully either I’m doing something wrong, or the developer will be able to address it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author DOTonPAPER

    (@dotonpaper)

    Hello,

    The display issue are caused by some CSS in your theme. Without a link we can’t fix it.

    The files are loaded using wp_enqueue_script() function. Not loading JavaScript using this option can cause incompatibilities with other plugins or themes, so we are not going to change the method, and is also what WordPress recommends. On the other side all scripts are added at the end of the file, so they will load after your content.

    Thank you

    I agree that wp_enqueue_scripts should be used, however the function should only be called on pages where the calendar is displayed.

    If this software uses shortcodes to display the booking forms, then something like has_shortcode() http://codex.ww.wp.xz.cn/Function_Reference/has_shortcode can be used to detect if the short code is included in the content, and if so the scripts can be enqueued.

    Here is the specific example that I’m referring to in the WordPress Codex:- http://codex.ww.wp.xz.cn/Function_Reference/has_shortcode#Simple_Example_2

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Has great potential’ is closed to new replies.