• Resolved Mike Sneed

    (@msneed)


    This post follows this one here. I ended up thinking of another way..

    I thought that it might just be easier to “hard code” a basic Bootstrap Carousel onto the homepage (front-page.php).

    I used the code here from the actual Bootstrap site.

    I’ve tried 2 ways: one through adding html through a function in the functions.php (code from the snippets sections: here) and another way adding html directly into front-page.php.

    Both show up but the slides stack and there is no action.. indicating that the html seems to work but there’s no javascript turning it on.

    Do I have to enqueue it or something?

    All help would be awesome!
    Michael

Viewing 4 replies - 1 through 4 (of 4 total)
  • Not an expert coder, but if I were making changes then I’d be looking in the /parts folder at the class-content-slider.php.

    @nikeo has written Czr using object-oriented coding, and in my experience most of the work is done in the class files.

    Thread Starter Mike Sneed

    (@msneed)

    Thanks rdell for your generous help! I got the slider to appear on the home page but it’s just the same one..

    Is there anyway to call another slider?

    Like lets say I named my original slider Slider A. I also made a Slider B with different images.. Is there a way to call Slider B for the bottom of my homepage. Or maybe I name the file: class-content-lower-slider.php and change something in that file?

    Any ideas?

    Thanks again!
    Michael

    This snippet deals with moving rather than duplicating. I’m no expert coder so don’t know if you could adapt it?

    Thread Starter Mike Sneed

    (@msneed)

    This snippet is kind of cool.. if only there was a way to work with targeting the other slider not the main front page slider that comes installed with Customizr.

    Thanks Rdell.. you work hard and help so many people out!

    I’ll let you know what comes of this!
    Thanks,
    Michael

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hard Code a Bootstrap Carousel onto homepage’ is closed to new replies.