• Resolved paolomen

    (@paolomen)


    Hi guys,

    I am using the plugin with Autoptimize and considered that Appointment Hour Booking (AHB) places the <!– noptimize –> tag around the javascript code in the header file. This prevents Autoptimize from aggregating the inline js code, what I am trying to achieve.

    I did a test and modified the cp-main-class.inc.php where the tag is inserted and removed it. Autoptimize then did its job and everything worked fine with the plugin and the booking forms.

    Is there any setting or rather a clean way to remove the tag as modifying the original plugin core is no option for me (nor should it be)?

    Thanks in advance!

    P.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter paolomen

    (@paolomen)

    The original title of my post was “<!– noptimize –> tag in header file”, the tag was removed which led to a not very meaningful post title. Sorry for that, I did not know that support platform would remove it from the title.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    That tag was there to avoid problems with some specific Autoptimize configurations. We will re-check if there is other solution to avoid having that tag there. In the meantime if you want to prevent automatic plugin updates overwriting that file you can manually change the plugin version to a major one at the top of the file ‘app-booking-plugin.php’.

    Thank you for using the plugin!

    Thread Starter paolomen

    (@paolomen)

    Ah okay, thanks for the hint and the reply 🙂

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

The topic ‘tag in header file’ is closed to new replies.