Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

create modal box in bootstrap theme

hi, i would like to create a popup modal will show 2 button. these button will open a new tab that will do URL redirection. How do i do this and where do i start? here is an image of what i would like to achieve - http://prntscr.com/7psom3

1 Answer

Kevin Korte
Kevin Korte
28,149 Points

Do you need help doing the modal or the links? Just follow bootstraps docs for creating the modal, what you have to do to implement is pretty easy, and there are examples on Bootstrap's page. From there, you basically have two anchor links. Just have the href point to the correct page, and add target=_blank to your href so it'll open a new tab. Basically this:

<a href="link/to/sales/page" target="_blank">Sales</a>

i need help with both. i'm a new user. been here for few hours. Can you help me by posting the bootstrap link here please?