-
AuthorPosts
-
February 26, 2019 at 9:27 am #1071679
Hi there,
I’ve successfully setup a custom spinner for loading pages. On Desktop though before the spinner loads there is some text appearing for a second or less .. “Lade” .. which is German .. so I guess for english language site it would be “loading” ..
Any way to avoid this text from showing ?
Any hints would be appreciated as usual
Cheers
Axel
p.s. just checked source code .. this is caused by the alt text of av-preloading-logo- This topic was modified 5 years, 9 months ago by Apachee. Reason: additional info
March 1, 2019 at 8:07 am #1072953Hi Axel,
What happens if you remove the alt text from the image?
Best regards,
RikardMarch 1, 2019 at 9:18 am #1072975Hi there,
the image itself has no alt text .. it apparently comes from functions-enfold.php$class .= ” av-transition-with-logo”;
$logo = ““;
}
so I’ve changed this to
$class .= ” av-transition-with-logo”;
$logo = ““;
}put the functions-enfold.php in my child theme folder .. but the alt text still shows ..
Any idea ?
March 1, 2019 at 9:22 am #1072977sorry .. I’ve changed this
$class .= " av-transition-with-logo"; $logo = "<img class='av-preloading-logo' src='{$logo}' alt='{$label}' title='{$label}' />"; }
to this
if($logo) { $class .= " av-transition-with-logo"; $logo = "<img class='av-preloading-logo' src='{$logo}' />"; }
March 5, 2019 at 5:51 am #1074663Hi,
We can’t reproduce the issue on our end and the theme’s preloader should not be displaying any text by default. We do see the “Lade” text when we put the mouse pointer over the image. Is that what you’re referring to? If so, then removing the title attribute should remove the title tooltip, which is a default browser feature.
Best regards,
IsmaelMarch 7, 2019 at 11:30 am #1075924Hi Ismael,
well.. I’ve just been at this issue again .. and as a matter of fact just seemed to have solved it ..
As mentioned in previous post .. the alt / title generates from functions-enfold.php as stated above. I’ve now deleted the code in the enfold root in adition to the file in the child theme and now it works. The alt/title is gone.
I’ve changed this
if($logo) { $class .= " av-transition-with-logo"; $logo = "<img class='av-preloading-logo' src='{$logo}' alt='{$label}' title='{$label}' />"; }
to this
if($logo) { $class .= " av-transition-with-logo"; $logo = "<img class='av-preloading-logo' src='{$logo}' />"; }
The only question remaining here is why it would not recognize the change in the child theme. Maybe I am getting something wrong with child themes… my understanding of it is that if I want to change whatever file of the theme I put a copy of it in the child theme folder so that it’ll overwrite the same file in the main enfold folder.. but in this case this didn’t work..
- This reply was modified 5 years, 9 months ago by Apachee.
March 11, 2019 at 11:16 am #1077263Hi,
You can only override template files in the child theme, the functions-enfold.php file is not one of them. You have to copy the “avia_preload_screen” function inside the child theme’s functions.php file in order to override the default one.
Best regards,
IsmaelMarch 11, 2019 at 12:13 pm #1077290Aah .. ok .. got it … so whatever is in the child theme’s functions.php overwrites everything .. even if it’s in the parents theme’s functions-enfold.php .. thx a lot Ismael ..
Feel free to close this topic ;)
Cheers
AxelMarch 11, 2019 at 3:35 pm #1077382 -
AuthorPosts
- The topic ‘Custom Spinner – How to remove Text’ is closed to new replies.