understrap / understrap-child

The starter child theme for Understrap, the renowned open-source WordPress starter theme.
GNU General Public License v3.0
579 stars 330 forks source link

Owl carousel #15

Closed DigiPez closed 7 years ago

DigiPez commented 8 years ago

Put simply, how do I get the owl carousel to appear on my custom home page template? I only want it to exist on the home page. I am developing through Wordpress.org.

At the moment I am sourcing the slider script in the template file but nothing appears to be happening... I am a beginner when it comes to using frameworks so it's probably something real simple!

brandon-morgan commented 7 years ago

@DigiPez

This is what I did...

Add following to the top of your custom home page template `

<?php if ( is_active_sidebar( 'hero' ) ) : ?>

<?php endif; ?>

` This grabs the Hero Slider widget. You will need to then navigate to your widgets and find the Hero Slider widget. As it says, you need add at least two widgets. If you want to have a test that looks exactly like the demo then add the following html inside a text widget w/o title.

First Text Widget `

First Slide

Welcome to the UnderStrap Demo site. UnderStrap is a WordPress theme framework based on Bootstrap SASS, the Underscores starter theme and some more usefull functions and scripts.

See it on GitHub

            </div>`

Second Text Widget `

Second Slide

Welcome to the UnderStrap Demo site. UnderStrap is a WordPress theme framework based on Bootstrap SASS, the Underscores starter theme and some more usefull functions and scripts.

See it on GitHub

            </div>`

That should do it! Let me know if you don't get it going.

blowsie commented 7 years ago

+1, i could not find any include for owl carousel.

holger1411 commented 7 years ago

Owl slider was removed and replaced with the default Bootstrap build-in slider. So this Issue is obsolet...;-)

blowsie commented 7 years ago

Is there an example of the BS carousel working?

holger1411 commented 7 years ago

Yes, the demo homppage use it: https://understrap.com/understrap/

It is used as a build-in widget slider

xicubed commented 6 years ago

Does the core child theme need to get rid of references to owl-carousel? Get my gulp watch-bs gives an error when it recompiles... There's still a blablabal/wp-content/themes/core-understrap-1-0-7/sass/assets/owl-carousel2.scss

`Message: sass/assets/owl-carousel2.scss Error: File to import not found or unreadable: ../../src/sass/owl-carousel2/owl.carousel. on line 1 of sass/assets/owl-carousel2.scss from line 10 of sass/child-theme.scss

@import "../../src/sass/owl-carousel2/owl.carousel"; `