• Resolved fisherhu

    (@fisherhu)


    Is it possible to add some extra message, like Don’t panick or so? Ok, I could mess up the php code, but I hope there is (or will be) a better way.

    Thanks!

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

    (@codepeople)

    Hello @fisherhu,

    If you want add a text to the loading screen would be required some of code. For example, if you are using the “Bar” screen, follow the steps below:

    1. Open the “/wp-content/plugins/loading-page/loading-screens/bar/loading-bar.js” file with the text editor of your choice.

    2. Go to the piece of code:

    this.created = true;

    and edit it as follows:

    this.attr['overlay'].append($('<div css="text-align:center;">Your Message Here</div>')); 
    this.created = true;

    3. Finally, clear the browser’s cache after edit the online files.

    Best regards.

    Thread Starter fisherhu

    (@fisherhu)

    Oh, thanks a lot!
    For the record, my (almost) final code:

                this.attr['overlay'].append($('<div style="text-align:center; position:absolute; width:100%; top: 50%; margin-top: 30px;">Don't panick...</div>'));
                this.created = true;

    I will prink the text style a bit, but mostly allrite.

    • This reply was modified 7 years, 10 months ago by fisherhu. Reason: Added the actual changes
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add extra message?’ is closed to new replies.