Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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, 8 months ago by Apachee. Reason: additional info
    #1072953

    Hi Axel,

    What happens if you remove the alt text from the image?

    Best regards,
    Rikard

    #1072975

    Hi there,
    the image itself has no alt text .. it apparently comes from functions-enfold.php

    $class .= ” av-transition-with-logo”;
    $logo = “{$label}“;
    }
    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 ?

    #1072977

    sorry .. 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}' />";
    		}
    #1074663

    Hi,

    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,
    Ismael

    #1075924

    Hi 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, 8 months ago by Apachee.
    #1077263

    Hi,

    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,
    Ismael

    #1077290

    Aah .. 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
    Axel

    #1077382

    Hi,

    You’re welcome. Please don’t hesitate to contact us if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Custom Spinner – How to remove Text’ is closed to new replies.