Support ForumSend different data instead of loading – Support Forum https://support.ishyoboy.com/forums/topic/send-different-data-instead-of-loading/feed/ Tue, 07 May 2024 11:06:07 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/send-different-data-instead-of-loading/#post-5731 <![CDATA[Send different data instead of loading]]> https://support.ishyoboy.com/forums/topic/send-different-data-instead-of-loading/#post-5731 Sat, 29 Nov 2014 08:17:12 +0000 tberin Hi,

Can you please explain how can I have a list of different words appear in a random order instead of “loading…” ?

Maybe using the translation text and putting an HTML random function inside with all the options?

Thanks!

]]>
https://support.ishyoboy.com/forums/topic/send-different-data-instead-of-loading/#post-5744 <![CDATA[Reply To: Send different data instead of loading]]> https://support.ishyoboy.com/forums/topic/send-different-data-instead-of-loading/#post-5744 Mon, 01 Dec 2014 07:08:57 +0000 IshYoBoy Hey,

You could override the “wp-content\themes\no8\header.php” file and look for this line:

'<div class="ish-site-preloader-text"><?php _e( 'Loading...', 'ishyoboy'); ?></div>' +

Instead of echoing the “Loading…” text you could add logic to output different words every time. Create an array of all texts and use PHP to randomize a number and then output the given word.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/send-different-data-instead-of-loading/#post-5799 <![CDATA[Reply To: Send different data instead of loading]]> https://support.ishyoboy.com/forums/topic/send-different-data-instead-of-loading/#post-5799 Wed, 03 Dec 2014 11:38:13 +0000 tberin https://support.ishyoboy.com/forums/topic/send-different-data-instead-of-loading/#post-5814 <![CDATA[Reply To: Send different data instead of loading]]> https://support.ishyoboy.com/forums/topic/send-different-data-instead-of-loading/#post-5814 Thu, 04 Dec 2014 05:10:32 +0000 IshYoBoy Hey,

This cannot be done without modifying the header file from a child theme and adding the random function. You can do something like:

And then output them randomly using something like this.

<div class="ish-site-preloader-text"><?php echo $loader_values[ mt_rand( 0, count(loader_values) ) ]; ?></div>

All the texts are translatable through .PO file from your child theme. You can easily generate it using Poedit ;)

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/send-different-data-instead-of-loading/#post-5827 <![CDATA[Reply To: Send different data instead of loading]]> https://support.ishyoboy.com/forums/topic/send-different-data-instead-of-loading/#post-5827 Thu, 04 Dec 2014 10:16:00 +0000 tberin Ok, i will have a try at this.

Any chance this could be added to to the options framework as an open field separated by “,” (loaded from the language file) and another option to randomise them and/or set the delay time before the next one goes in?
This would be really awesome :)

Thanks!

]]>
https://support.ishyoboy.com/forums/topic/send-different-data-instead-of-loading/#post-5840 <![CDATA[Reply To: Send different data instead of loading]]> https://support.ishyoboy.com/forums/topic/send-different-data-instead-of-loading/#post-5840 Thu, 04 Dec 2014 17:30:51 +0000 IshYoBoy Hey

Sorry, pal. This is a customization especially needed by you only. It is as simple pre-loader and you have all the code and tools to add anything you wish. Use a child theme to add it in few minutes ;)

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>