Codeinwp / Codeinwp/neve

Add alignment option for the whole menu in the header area

Open
#3,911 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

customer report new feature
Dominant language
PHP
Stars
306
Forks
88
Avg merge
2d 16h
Merged PRs (30d)
12

Description

What problem does this address?

If the primary menu has multiple items and it expands on two rows, there is no option to center all the items.

Markup on 2023-03-24 at 21:01:24

Currently, it can be done with CSS code, as the current alignment option is for the items themselves, not for the whole menu.

.nav-ul {
    justify-content: center;
}
What is your proposed solution?

Add an option for aligning the whole menu in the space it occupies within the header row.

Requested here - https://secure.helpscout.net/conversation/2191004513/362715/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the header menu implementation and the .nav-ul styles, then inspect how the existing item-alignment option is exposed. Add a separate option for aligning the whole menu within the header row, and verify that a menu wrapping onto two rows can be centered without custom CSS.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.