question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: Add theme setting for default sorting of menu entries

See original GitHub issue

Hi @vjeantet

With the recent content organization, my navigation entries don’t seem to be sorted alphabetically like it used to be. I do no specify the weight attribute.

I am using Hugo version 0.25 and your theme at commit 5869299972c981931908be24b0f378039197e2d4. My entries used to be sorted alphabetically but now it looks like it’s sorted by date.

If no weights are provided (or if weights are the same), date will be used to sort https://gohugo.io/content/ordering/

Cheers

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
vjeantetcommented, Jul 19, 2017

add ordersectionsby = "title" in your config.toml

0reactions
siamkreativecommented, Jul 27, 2017

I might have been slightly unclear about the expected result. Right now, it is impossible to overrides the default sorting (ordersectionsby) using the weight attribute. I believe we should still be able to overrides the menu entries sorting by weight.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sort order of Customizer options · Issue #1009 · Automattic ... - GitHub
* Lets you set a featured image position default, or template default for posts. * May house the same options for pages in...
Read more >
How to Add Custom Navigation Menus in WordPress Themes
This will add a new menu location to your theme, called 'My Custom Menu.' To use a different name, simply change the above...
Read more >
How To Customize Product Sorting in WooCommerce
Ensure that Default Product Sorting is set to “Default sorting (custom ordering + name)”. Publish the new settings and then go to edit...
Read more >
How to Customize WooCommerce Product Sorting and Ordering
You can go to the Customizer → WooCommerce → Product Catalog to set the initial sort order of products in your online store...
Read more >
Extra Product Sorting Options for WooCommerce
You can optionally set a new name for the default sorting (helpful if you've used this to create a custom sorting order), and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found