BYAMN-Learning icon indicating copy to clipboard operation
BYAMN-Learning copied to clipboard

Fix footer duplication across pages

Open Anjali-singh-v-278 opened this issue 11 months ago • 6 comments

Is your feature request related to a problem or challenge?

The footer HTML is duplicated across 13 different files.
Whenever a change is needed (like fixing social media links), the same update must be applied manually to each file, which is repetitive, time-consuming, and error-prone.

Image

Describe the solution you'd like

Move the footer into a single shared file called footer.html and load it dynamically on all pages using JavaScript.

Example:

<div id="footer"></div>

<script>
  fetch("./footer.html")
    .then(res => res.text())
    .then(html => {
      document.getElementById("footer").innerHTML = html;
    });
</script>


### Describe alternatives you've considered


Keeping the duplicated footer in every file and manually updating them, but this approach is inefficient and prone to mistakes as the project grows.


### Additional context

Currently, the same footer code exists in 13 HTML files with identical content.  
Refactoring it into a single component will improve maintainability and reduce future bugs.

Anjali-singh-v-278 avatar Dec 09 '25 06:12 Anjali-singh-v-278

Thank you for raising this issue!

We'll review it as soon as possible. We truly appreciate your contributions! ✨

Meanwhile make sure you've visited the README.md, CONTRIBUTING.md, and CODE_OF_CONDUCT.md before creating a PR for this. Also, please do NOT create a PR until this issue has been assigned to you. 😊

github-actions[bot] avatar Dec 09 '25 06:12 github-actions[bot]

Hi! As a WOCS contributor, I’d love to take this issue and work on implementing the shared footer refactor.
Please let me know if I can proceed.

Anjali-singh-v-278 avatar Dec 09 '25 06:12 Anjali-singh-v-278

🤖 Auto-unassignment Notice

This issue has been automatically unassigned from @Anjali-singh-v-278 because it was assigned more than 7 days ago (on Tue Dec 09 2025) and no pull request has been opened to address it.

What happens next?

  • This issue is now available for anyone to pick up
  • If you were working on this and need more time, please comment on this issue and ask to be reassigned
  • If you have a draft PR or work in progress, please open a draft PR to maintain your assignment

For future reference:

  • Please open a draft PR within 7 days of being assigned to an issue
  • This helps keep the project moving and ensures issues don't get stuck

Thank you for your understanding! 🙏

github-actions[bot] avatar Dec 17 '25 06:12 github-actions[bot]

Hi @DYHARDx

I'd like to work on this issue. I understand that the footer is duplicated across 13 HTML files, making maintenance difficult.

-- My approach --

  1. Create a single footer.html file with the shared footer code
  2. Replace the footer content in all 13 files with a div container
  3. Add JavaScript to dynamically load the footer on each page
  4. Test all pages to ensure the footer loads correctly

Would you be open to assigning this to me? I can have a PR ready soon.

Thanks!

Ankita-kuntal avatar Dec 17 '25 11:12 Ankita-kuntal

@Ankita-kuntal dont take permisssom you can send directly pr

DYHARDx avatar Dec 27 '25 05:12 DYHARDx

hii @Ankita-kuntal I wanted to check whether this issue is still open or already resolved. If it’s still available, I’d be happy to work on it and submit a PR.

Anjali-singh-v-278 avatar Jan 05 '26 17:01 Anjali-singh-v-278