question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Full Width Slider not working?

See original GitHub issue

Hello, I am doing a Django project and wanted to implement this css. It has been amazing so far but I can’t seem to get carousel-slider to work, the normal one seems to work but the full width one just doesn’t appear. Nothing in the console and its showing up in inspect page.

$(document).ready(function(){ $('.carousel').carousel(); }); - works

$(document).ready(function(){ $('.carousel.carousel-slider').carousel({full_width: true}); }); - doesn’t work

Here is my slider: <div class="carousel carousel-slider"> <a class="carousel-item" href="#one!"><img src="{% static 'img/banner2.jpg' %}"></a> <a class="carousel-item" href="#two!"><img src="{% static 'img/banner3.jpg' %}"></a> </div>

Does the full width one have any special requirements? I can’t seem to find anything on the website nor here on github. Thanks in advance 😃

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:23

github_iconTop GitHub Comments

15reactions
dduliccommented, Aug 17, 2016

Changing:

$(document).ready(function(){ $('.carousel.carousel-slider').carousel({full_width: true}); });

to:

$(function(){ $('.carousel.carousel-slider').carousel({full_width: true}); });

fixes the problem. Thanks @Sepehr13

EDIT:

I think I found the problem. It wasn’t the above issue. An issue was that the .carousel-slider element had a height of 0 set. Adding

.carousel-slider {
    height: 400px !important;
}

fixes the issue. Maybe a bug? Leaving open so it can be checked out.

9reactions
kartikchauhancommented, Feb 10, 2017

I copied the following code from materialize.css to embed a full with carousel. $('.carousel.carousel-slider').carousel({fullWidth: true});

However, the above code didn’t work. I changed the above code to $('.carousel.carousel-slider').carousel({full_width: true}); and I worked like a charm.

Here’s the full code: $(document).ready(function(){ $('.carousel.carousel-slider').carousel({full_width: true}); });

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved - Full width slider not working - Divi.Help
For over a day I've been battling to get the fullwidth slider working on Divi. The slider appears as a tiny image no...
Read more >
Full Width not working – MetaSlider - WordPress.org
Hi, Your theme is preventing MetaSlider from going full width. The slider is getting wrapped by a container with a max width of...
Read more >
The Divi Fullwidth Slider Module - Elegant Themes
Divi allows you to place sliders into full width sections, making your sliders span the entire width of the browser. Divi sliders support...
Read more >
Topic: revolution slider not stretching full width - Themeco
The slider is already using the fullwidth slider layout. ... Another issue is that the “align – grid based” function is not working....
Read more >
Enfold - Fullwidth Easy Slider not working - Support - Kriesi.at
Enfold – Fullwidth Easy Slider not working · 1. Goto plugins page > Deactivate all active Plugins · 2. Updated WordPress and Enfold...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found