4
Good night, you guys. The thing is, I’m using the bootstrap and I would like to know how I avoid repeating the same codes on all pages, because the header and footer are the same, it would make the code more legible, I searched and saw that I should use PHP’s Include, but I don’t know how to use it, Help me out, please. Grateful ;)
If you don’t want to use. php files on your site, you can do this using jQuery.
– Ricardo
Perfect @Ricardo
– Lennon S. Bueno
I did like you said, but it still doesn’t work, like, I put all the html on the page, right, then I take all the code from Navbar and play in a separate document, when I give the include it n shows the navbar.
– Tiago Silveira
I managed to solve, I had not put the extension of the index page as php.
– Tiago Silveira
@Very good tiagosilveira :) Remembering that you can have as many includes as you want, for example also separate a side menu
– Lennon S. Bueno