Custom Theme-Options in x-child

Hey guys,

I installed the x-child and successfully added a second logo in the top nav bar.

What I couldn’t find is where to put the additional theme options within x-child. I copied the theme options php file from x to x-child into the exact same location and added my variables there, but they didn’t show up in Wordpress. Only when I add the theme options in the original file they show up, but that will be overwritten once I update the theme.

Any ideas on this?
Thanks in advance
Benedikt

Hey Benedikt,

Overriding template files is not applicable to functions which is the case for Theme Options. Most frontend functions can be overridden through functions.php if they are wrapped with if ( ! function_exists( 'function' ) ). But, the rest that are not wrapped, modification or addition of options is not allowed and that is the case for Theme Options.

For custom options, I’d recommend that you use WordPress’ Customizer instead. See https://codex.wordpress.org/Theme_Customization_API.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.