Customizing Top Menu

Hello CurateScape team,

I have successfully modified the top menu (where it is default at “Stories,” “Tours,” and “Map”) to include my “About” section and my “Collections” (which, for the purposes of my digital archive, I’m calling “Groups”). See the below provided screenshot for reference. The only part of the code I can’t quite wrap my brain around is the “quicklink_story” command, under get_theme_option. I found a few spots in the config.ini file where I could add my own section for quicklink_group (copying exactly the commands for quicklink_story, but changing the quicklink_story to quicklink_groups in the custom.php file just makes the button disappear. So long as I have it set to what it is now – a duct tape solution, really – the new buttons appear and work just fine. But I’d like to understand this quicklink situation a bit better so I can make this customization better and less DIY. Any suggestions are welcome. Thank you.

Here’s how the menu looks with the above-provided code:

See documentation for get_theme_option() and look at the theme config.ini file. You may also want to familiarize yourself with the PHP ternary operator. You don’t actually need to keep all those conditionals if you’re not using them.

I was a bit hasty in my reply and see now that you have already edited the config.ini file with a new option. If it’s not returning the value you expect, it may be that you just need to visit the options page and save the settings.

Also, screenshots of code are not ideal. You can use backticks to format code. Wrap code in a single backtick (`) or use three of them (```) at the beginning and end of a multi-line code block.

Thanks for these suggestions. Will follow up. And duly noted on the code sharing strategy. Will do this from now on. Thank you.