My carousel isn't working properly after the page first loads. Once it does and I click on one of the next / previous arrow a second time, the carousel won't advance. I do notice the carousel ID loads in the URL after the first click and if I reload the page at that point, the carousel will work fine with advancing properly on each click once that #pitchdeck carousel ID is in the URL.
Any ideas on why this is happening? Please note I did a little CSS styling with the indicators, arrows and caption for custom positioning so I'm not sure if that's playing into this. Link below (carousel slightly down the page). Thanks in advance on any help provided! Link and code below...
<div class="container">
<div class="row">
<div id="pitchdeck" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators hidden">
<li data-target="#pitchdeck" data-slide-to="0" class="active"></li>
<li data-target="#pitchdeck" data-slide-to="1"></li>
<li data-target="#pitchdeck" data-slide-to="2"></li>
<li data-target="#pitchdeck" data-slide-to="3"></li>
<li data-target="#pitchdeck" data-slide-to="4"></li>
<li data-target="#pitchdeck" data-slide-to="5"></li>
<li data-target="#pitchdeck" data-slide-to="6"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img class="d-block w-100" src="images/deck-stroke.jpg" alt="Stroke">
<div class="carousel-caption">
<h3><b>Stroke.</b></h3>
Nearly 800,000 people suffer from a stroke each year, making it the leading cause of serious, long-term disability in the U.S.
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100" src="images/deck-alz.jpg" alt="Alzheimer's">
<div class="carousel-caption">
<h3><b>Alzheimer's Disease.</b></h3>
An estimated 5.5 million Americans of all ages suffer from Alzheimer's Disease and related dementias.
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100" src="images/deck-diabetes.jpg" alt="Diabetes">
<div class="carousel-caption">
<h3><b>Diabetes.</b> </h3>
29 million people in the U.S. have diabetes and another estimated 8.1 million are undiagnosed, living unaware of their condition.
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100" src="/wp-content/uploads/2017/12/deck-heart.jpg" alt="Heart Disease">
<div class="carousel-caption">
<h3><b>Heart Disease.</b> </h3>
610,000 people, or one in four, die each year from heart disease in the U.S., making it the leading cause of death for Americans.
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100" src="/wp-content/uploads/2017/12/deck-arthritis.jpg" alt="Arthritis">
<div class="carousel-caption">
<h3><b>Arthritis.</b> </h3>
This chronic, debilitating condition afflicts 350 million people worldwide, and 40 million people in the U.S. alone.
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100" src="/wp-content/uploads/2017/12/deck-infertility.jpg" alt="Infertility and Erectile Dysfunction">
<div class="carousel-caption">
<h3><b>Infertility and Erectile Dysfunction.</b> </h3>
Infertility impacts 5 million people, or one in every 10 couples, in the U.S. As many as 52 percent of men suffer from erectile dysfunction.
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100" src="/wp-content/uploads/2017/12/deck-chronic.jpg" alt="Chronic Traumatic Encephalopathy">
<div class="carousel-caption">
<h3><b>Chronic Traumatic Encephalopathy.</b> </h3>
This neurodegenerative disease is found in people with multiple head injuries and afflicts NFL players, a story depicted in the feature film "Concussion" starring Will Smith. NFL players have committed suicide as a result of this disease and the NFL has set aside nearly $800 million to treat the disease.
</div>
</div>
</div>
<a class="carousel-control-prev" href="#pitchdeck" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#pitchdeck" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>