no explicit width and height Slide Show/carousel

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
Chizzle685
 
 
Posts: 46
Joined: Tue Jul 20, 2021 10:50 am

no explicit width and height Slide Show/carousel

Post by Chizzle685 »

Hello, I have a problem with Google Lighthouse. I am using Slide Show Type carousel and have enabled navigation (Enable navigation buttons). Now I get a message from Lighthouse that the image elements do not have an explicit width and height ---> /images/carousel_back.png

Can you help me?
User avatar
Pablo
 
Posts: 21508
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: no explicit width and height Slide Show/carousel

Post by Pablo »

The image carousel currently does not have an option to include the width/height for navigation buttons.
I will add this to my todo list for a future update.
Joe_120
 
 
Posts: 30
Joined: Fri May 21, 2021 3:10 pm
Location: Cornwall

Re: no explicit width and height Slide Show/carousel

Post by Joe_120 »

You could add a small amount of css to an html object (Type - Between <head></head>tags) and specify the size.

Code: Select all

<style>
#indexSlideShow1_next img, #indexSlideShow1_back img{ 
width: 30px ; 
height: 30px ;
}
</style>
In this example indexSlideShow1_next and indexSlideShow1_back are the div id's for the buttons. You will need to change these to your button id's. Don't remove the # and leave a space between the id and img. The width and height are what the div sizes are currently. To check its working change the 30px to say 60px and preview.

Joe
If it wasn't for bad luck, I'd have no luck at all.
Chizzle685
 
 
Posts: 46
Joined: Tue Jul 20, 2021 10:50 am

Re: no explicit width and height Slide Show/carousel

Post by Chizzle685 »

Thank you very much
Joe_120
 
 
Posts: 30
Joined: Fri May 21, 2021 3:10 pm
Location: Cornwall

Re: no explicit width and height Slide Show/carousel

Post by Joe_120 »

Thanks for the feedback
If it wasn't for bad luck, I'd have no luck at all.
Post Reply