0
I’m studying a code, and setting up a website with it. But, I made changes to the Dashboard sidebar, but they weren’t replicated to the other pages, I’d like when I changed the Dashboard, all the sidebars on the other pages to change as well. How can I do that?
Here’s part of the code:
I changed it this way on Dashboard: http://prntscr.com/j6p4tk
But when I go to another page, it continues the old way (in case I would have to change one by one, and I didn’t want to do that, I want when I change on Dashboard, go to all other pages): http://prntscr.com/j6p54d
All pages receive the same code?
– Sam
Can be browser cache.
– Sam
Yes, all pages receive the same code! So I would like Dashboard to be the "default" and just replicate to the next ones. Because the code I posted, it was the edited, I would like it to be automatic for the others;
– Nathan Lopes
Explain the question better. What changes have been made?
– Sam
I changed the sidebar only in the Dashboard html. And every code is replicated to the other pages, in case I would have to change each manual, translate and etc. But it is already translated in Dashboard. I wanted the Dashboard sidebar to be the same for all the other pages, without me having to go on every page and paste the sidebar code into them
– Nathan Lopes
Do you use PHP? You would have to use include
– Sam
Yes, I do, but I’m not new to the language either. Could you show me what the code would look like?
– Nathan Lopes
You can view the official doc. http://php.net/manual/en/function.include.php
– Sam
Take a look at this answer that should help you. https://answall.com/questions/273072/carregar-html-de-other-html/273090#273090
– hugocsl