fossasia / fossasia/codeheat.org

Menu Bar Mismatch on Sub-Pages

Open
#363 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Less
Stars
1.6k
Forks
331
PR merge metrics
No merged PRs in 30d

Description

## Issue Description:

Currently, the homepage uses a globally defined menu bar, which is intended only for the homepage. However, each Codeheat contest page (by year) has its own dedicated menu bar, linked specifically to sections on that page.

### Problem:

When a sub-page (e.g., a detail page or sub-route under a yearly Codeheat page) is created, the global homepage menu bar appears instead of the year-specific menu bar. This causes inconsistency in navigation and user experience.

Image

_Homepage_

Image

_Codeheat 2016_

### TASK:

- [x] [Add functions](https://github.com/fossasia/codeheat.org/issues/363#issuecomment-3151909332) to the functions.php file
- [x] [Demo](https://github.com/fossasia/codeheat.org/issues/363#issuecomment-3151995951) through a screencast

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.