Skip to content

Page Load - Invitation Codes are shown for a split second #1

@ruxkor

Description

@ruxkor

See screenshot at the end: Whenever I'm opening a page with Elementor, I can see, for a very short time, a list of invitation codes.

A quick fix could be

diff --git a/wp-content/plugins/ashuwp-invitaion-code/tinymce/insert_invitation_code.php b/wp-content/plugins/ashuwp-invitaion-code/tinymce/insert_invitation_code.
index 5b965089..832bbaae 100644
--- a/wp-content/plugins/ashuwp-invitaion-code/tinymce/insert_invitation_code.php
+++ b/wp-content/plugins/ashuwp-invitaion-code/tinymce/insert_invitation_code.php
@@ -27,7 +28,7 @@ class ashuwp_invitation_code_tinymce{
       return;^M
     }^M
     ?>^M
-    <div id="invitation_modal">^M
+    <div id="invitation_modal" style="display: none;">^M
       <div class="modal-backdrop"></div>^M
       <div class="modal-dialog">^M
         <div class="modal-content">^M
~                                                                                                                                                                  

But, ideally, this should not even be loaded if no tiny mce is used, I think. Maybe add an option to the plugin? So one can decide if he wants to load this?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions