Need help implementing modals in Codepen


On my tribute page, I want a modal to appear whenever you click on the center image. However whenever you click the image it just takes you back to the top.

Right now I have manually added bootstrap and other classes using link elements.
When I try using codepen’s Bootstrap, it will work correctly but the caption class disappears and the image overextends onto the silver part of the page.

Maybe I’m just using an old version of bootstrap that doesn’t support modals? I’m not sure, but I would greatly appreciate the help.

You need jquery and the corresponding bootstrap jquery too. I don’t see those links in your code.

1 Like

Thanks, I added the Jquery CDN to my code and it worked!

<script src=""></script>