Hi @pranayr
A slight variation of the header for specific pages without affecting the other pages in AEM
approach:1
1. Create a new template: Create a new template specifically for the 10 pages that require the variation in the header. This template will be a copy of the original template but with the necessary modifications.
2. Modify the header component: In the new template, modify the header component to include the desired variation. You can either create a new variation of the header component or add additional logic to the existing header component to handle the variation.
3. Apply the new template: Apply the new template to the 10 specific pages that require the variation in the header. This can be done by changing the template assignment for each page individually.
4. Update the original template: In the original template, remove the inclusion of the Experience Fragment for the header. This will ensure that the original template does not impact the 10 pages with the variation.
approach:2
you want to keep the original template and header component intact
1. Create a new component: Create a new component specifically for the variation in the header. This component will be similar to the header component but with the necessary modifications.
2. Include the new component: In the 10 specific pages that require the variation, include the new component instead of the original header component. This can be done by adding the new component to the page structure or by using a component placeholder.
3. Configure the new component: Configure the new component to display the desired variation in the header. This can be done by adding additional logic or customization specific to the 10 pages.
By using a separate component for the variation and including it only in the specific pages.