JSON theme settings editor is awesome! (And Events is great too!)

One thing I want to point out about the settings editor is how especially useful I find it for troubleshooting or changing theme component settings that specifically require a delimited string input to form arrays. IMO, I find it much easier to make string setting edits in the settings editor modal than in the UI interface fields.

For example, here is a settings editor output for the Header Links theme component (setting rows are separated by “|” pipe).

[
	{
		"setting": "Custom_header_links",
		"value": "Meta-D, this link will open Meta in a new tab, https://meta.discourse.org, vdo, blank, remove|Most Liked, Posts with the most amount of likes, /latest/?order=op_likes, vdo, self, keep|Privacy, Our Privacy Policy, /privacy, vdm, self, keep|FAQ, Frequently Asked Questions, /faq, vdm, self, keep"
	},
	{
		"setting": "links_position",
		"value": "right"
	}
]

No need fiddle with long strings in small sized text boxes or even to click green checkmark buttons, since saving in the settings editor automatically saves the settings.

3 Likes