Twitter BootStrap Carousel why hashtag added at end of url

I use Carousel (Slider) when I click on the next and prev buttons, adding hashtag # cptbc_105 to the end of the url. I want to remove this, little carousel. I do not know why this page is going up when I click on the next button.

Here is the url: http://goo.gl/m3BlBU

Please help me, thanks.

+6
source share
1 answer

It seems that "cptbc_105" is the identifier of your carousel. The page URL changes because you use href = "# cptbc_105" on the left and right buttons. Just change the "href" attr to "data-target" attr and each of them will work correctly.

EDIT:

<a class="right carousel-control" href="#cptbc_105" role="button" data-slide="next"> <span class="sr-only">Next</span> </a>

TO:

<a class="right carousel-control" data-target="#cptbc_105" role="button" data-slide="next"> <span class="sr-only">Next</span> </a>

+11
source

All Articles