Answer the question
In order to leave comments, you need to log in
How to change some parts of html when building a template?
I'm building a project with `gulp'a`, let's say I'm making a multipage, I use the `gulp-rigger` plugin, its essence is that it allows you to connect any parts of the template, you can do the same with `PHP`. Let's say we have a repeating header, we can connect it to all pages and after assembly, this piece will simply be inserted into the main `html` document. The problem is that if I have navigation in the header, and I need to highlight a certain active item on the page, how can I solve this? That is, I will have a class that defines the active part, and I must set it to menu items depending on the page.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question