Disabled Carousel Navigation Controls in Bootstrap 4

After following the official Bootstrap tutorial, I attempted to set up a carousel containing three images. Despite changing the links for demonstration purposes, the issue persisted. While the navigation arrows seemed functional, the image itself remained static. Even after attempting to address the problem with jQuery, I was unable to get the carousel to rotate through at least three images successfully. My tests were conducted using Google Chrome as my browser.

HTML

    <!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootswatch/4.1.0/lux/bootstrap.min.css">
  <link rel="stylesheet" href="style.css">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  <title>My Art</title>
</head>
<body>
    <!-- Navbar Start -->
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
      <a class="navbar-brand" href="index.html">Daniye S. Bartell</a>
      <div class="collapse navbar-collapse" id="navbarNav">
      <ul class="navbar-nav">
        <li class="nav-item">
          <a class="nav-link" href="index.html">Home</a>
        </li>
        <li class="nav-item active">
          <a class="nav-link" href="#">Art</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#">Projects</a>
        </li>
      </ul>
    </div>
    </nav>
    <!-- Navbar End -->
    <!-- Start Main Container -->
  <div id="main-art" class="container-fluid">
    <div class="text-center art-paragraph">
      <h1>Glitch Art</h1>
      <p>Glitch art has been a passion of mine for about two years now. It never gets old learning new ways to break computer logic and reasoning. It goes without saying that I've broken many a file, but I've never considered those failures. I've thought of them as methods of discovery for new ways to create beautiful new images. I've turned some pictures into sound, taken the hex code and inserted song lyrics, reformatted them in text editors and much, much more. Currently I'm working on a web app that makes it easy for the average person to make their own glitch art! Found below are ...
    </div>
    <!-- Carousel Code Start -->
    <div class="carousel slide" id="glitchCarousel" data-ride="carousel">
      <div class="carousel-inner" role="listbox">
        <!-- Carousel Items -->
        <div class="carousel-item active">
          <img src="https://topbackgroundwallpaper.com/wp-content/uploads/2018/01/space-1080p-wallpaper-space-cataclysm-planet-art-explosion-asteroids-comets-fragments-98315-1920x1080.jpg" alt="First Pic" class="d-block w-100"/>
        </div>
        <div class="carousel-item">
          <img src="https://i.imgur.com/zIRiIpc.jpg" alt="Second Pic" class="d-block w-100"/>
        </div>
        <div class="carousel-item">
          <img src="https://i.imgur.com/OlMlERn.jpg" alt="Third Pic" class="d-block w-100"/>
        </div>
        <!-- Carousel Item End -->
      </div>
      <a href="#glitchCarousel" class="carousel-control-prev" role="button" data-slide="prev">
        <span class="carousel-control-prev-icon" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
      </a>
      <a href="#glitchCarousel" class="carousel-control-next" role="button" data-slide="next">
        <span class="carousel-control-next-icon" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
      </a>
    </div>
    <!-- Carousel Code End -->
  </div>
  <!-- End Main Container -->
</body>
</html>

CSS

#selfie
{
  border-radius: 20%;
  padding: 30px;
}

.info
{
  color: #000;
  padding-top: 10px;
}

#main-art
{

}
.art-paragraph
{
  padding-top: 10px;
  color: #000;
  margin:auto;
  max-width: 50%;
}

#glitchCarousel
{
  max-width: 60%;
  margin: auto;
  border-style: solid;
  border-color: #000;
  border-width: 12px;
  padding: 10px;
}

Answer â„–1

In order for bootstrap components to function properly, it is necessary to include jQuery and popper.js as dependencies. Make sure to add jQuery to your project!

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXK4YfRvH+8cbtTE1Pi6jizo" crossorigin="anonymous"></script>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Error: Cannot assign type 'null' to click event type Array. I have not been able to locate a solution to my issue in other related queries

Can someone assist me with my latest Angular project? I encountered an issue with the (click)="onOpenModal(null, 'add')" function call. Since it's meant to open a modal without an existing employee, I passed in null as a placeholde ...

Revolutionary Knockout-Kendo MultiSelect Feature: Pressing Enter Erases Previously Selected Options

When using the Knockout-Kendo MultiSelect control, I have encountered an issue. If I select a value from the list, then enter a second value and press enter, the previously entered values are removed. VIEW <select data-bind="kendoMultiSelect: { da ...

Prevent form submission when pressing enter using jQuery

On my page, I have the javascript code below that doesn't seem to be functioning as expected. $('form').bind("keypress", function(e) { if (e.keyCode == 13) { e.preventDefault(); return false; } }); I want to prev ...

Ways to have a list component smoothly descend when a dropdown menu is activated

I have a situation where I have a list with two buttons, and each button triggers the same dropdown content in a sidebar component. The issue is that when I click on one button to open the dropdown, the second button does not move down to make space for it ...

Utilize the identical button and modify the text displayed on it for implementing my jQuery function that toggles visibility

Is there a way to modify my current jQuery function for displaying and hiding a contact form using the same button? Currently, I have two buttons that toggle the visibility of the form: "Write me" shows the form on click and changes to "I don't want ...

Learn how to simulate the pressing of the enter key in AngularJS by clicking a button after entering text into a text box

I have a text box and button. Upon clicking the button, I am calling a function after entering some text in the text box. I also need to call the same function when the Enter key is pressed. Below is the code: HTML <script src="https://ajax.googleap ...

Utilize Jquery to insert the text into the input or textarea field

<div class="ctrlHolder"> <label for="" id="name.label">Name</label> <input name="name" id="name" type="text" class="textInput small" /> <p class="formHint">Please enter the name of the item you are submitting</p> </di ...

JavaScript and jQuery not functioning properly with setting cookies

I'm having an issue setting a cookie by clicking on a button. I've tried three different methods but it's not working. HTML: <!DOCTYPE html> <html dir="ltr"> <head> [...] <script src="//ajax.googleapis.com/ ...

VueJS integrated with FullCalendar: Dynamically load FullCalendar only after linking required scripts in index.html

When trying to incorporate fullCalendar into my Vue component, I encountered the error message "fullCalendar is not a function." It appears that the scripts I have included in my index.html file are loading after the Vue component has already been loaded. ...

Ways to exhibit API information leveraging the prowess of Ajax

I am looking for a way to utilize the API in order to present data in an organized manner, similar to the following example: Job Title: Agricultural and Related Trades Percentage of Occupancies in Area: 15.41% Unfortunately, my attempt to showcase the d ...

My sub menu bar is not working properly, I need to fix it so that it can dropdown correctly

I'm struggling with my sub menu layout and need some assistance in fixing it. I've tried numerous times to adjust it using CSS, but without success. Here is the link to my menu. I'm still learning CSS and could really use some guidance: # ...

Utilizing loop variables in ng-class and ng-click directive

This piece of code generates a list consisting of seven thumbnails, with the currently active image designated by the active and thumb classes. <div ng-repeat="no in [1, 2, 3, 4, 5, 6, 7]"> <img ng-src="images/{{no}}t.jpg" class="thumb" ng ...

How can you alter each character when you hover over them?

I have a query <p class="item">Ultimatepp’s</p> When hovering over it, I want to change each character individually. I currently have a few characters stored in a variable called 'characters': 'a#ldfhas?', 'kdjbiho ...

Error in NVD3 causing charts to be inaccurately rendered

While utilizing a stacked area chart in the Stacked display mode, there appears to be an issue with the shading under the graph, particularly on the left side of the displayed plot below. We are currently working with d3 v3.4.9 and nvd3 v1.1.15b. Do you ...

Styling DL and DD elements with Zend Framework decorators

When incorporating a Subform named "Step1," your code will look like this: <dl class="zend_form"> <dt id="Step1-label"></dt> <dd id="Step1-element"> <fieldset id="fieldset-Step1" class="Step"> < ...

What is the best way to send an email with a randomly generated HTML output using a <button>?

I am currently working on a feature where a random HTML output is sent to me via email whenever a user clicks on a button on the website page. The user receives a code when they click the button, and I want that code to be emailed to my address automatical ...

Effortless AJAX authentication verification

I am seeking assistance with a piece of code that I have been struggling with. I would appreciate it if someone could help me identify the mistake in my code. Any guidance or advice would be greatly appreciated. $('#username').change(functi ...

The curly brackets in Vue.js do not function properly within a v-for loop when there is an object nested inside an array

I am a novice in vuejs and I am attempting to utilize mustache {{}} to render elements of an array. It works fine for simple arrays, but when I try it with an array containing objects, it doesn't seem to work. Is there an issue with my code, or is it ...

Having trouble with getting the background image URL to work in Django CSS?

Hey there, I'm having an issue with my header-task class. The background-image doesn't seem to be showing up, even though when I click the URL in Visual Studio Code, the image displays. Can anyone help me figure out what's going wrong with m ...

What is the best way to save the various canvas images within a division as a single png file?

Hey there, I currently have a setup with multiple canvas elements within a main division structured like this: <div id="main"> <canvas id="one"> <canvas id="two"> <div id="main_2"> <canvas id="three"> </div ...