$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>functions - How to make child theme inherit parent custom theme options|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

functions - How to make child theme inherit parent custom theme options

matteradmin8PV0评论
Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 7 years ago.

Improve this question

It's extremely possible this question has been answered before, but I'm not 100% sure of my terminology.

The parent theme in question is a premium theme. One of the things it does is offer custom sections under Themes > Customise. I include an image so y'all know exactly what I'm talking about, in case I'm using the wrong words.

I need to overwrite some parts of the parent CSS, so of course I thought of a child theme. However when I load up my child theme, this menu area reverts to the default WP items.

As far as I can tell, the custom part of the parent theme is being loaded through the theme's functions.php, which means that it should be inherited by the child theme, right?

I've also tried to track down just inheriting the same settings as the parent theme, since for an interim solution that will work.

See this post here, which offers a solution to do just that. No joy there either though.

Does anyone have any ideas about what I should be pursuing to work this out?

EDIT: Child themes DO NOT inherit parents Customizer Options

Incidentally this is a site on WordPress, rather than self-hosted. First time I've dealt with WordPress so I'm not sure if that's significant or not.

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 7 years ago.

Improve this question

It's extremely possible this question has been answered before, but I'm not 100% sure of my terminology.

The parent theme in question is a premium theme. One of the things it does is offer custom sections under Themes > Customise. I include an image so y'all know exactly what I'm talking about, in case I'm using the wrong words.

I need to overwrite some parts of the parent CSS, so of course I thought of a child theme. However when I load up my child theme, this menu area reverts to the default WP items.

As far as I can tell, the custom part of the parent theme is being loaded through the theme's functions.php, which means that it should be inherited by the child theme, right?

I've also tried to track down just inheriting the same settings as the parent theme, since for an interim solution that will work.

See this post here, which offers a solution to do just that. No joy there either though.

Does anyone have any ideas about what I should be pursuing to work this out?

EDIT: Child themes DO NOT inherit parents Customizer Options

Incidentally this is a site on WordPress, rather than self-hosted. First time I've dealt with WordPress so I'm not sure if that's significant or not.

Share Improve this question edited Nov 5, 2018 at 16:33 MediaFormat 2831 silver badge11 bronze badges asked Feb 7, 2018 at 11:27 rickibarnesrickibarnes 1578 bronze badges 3
  • You need to take it up with the theme author and/or support. – Jacob Peattie Commented Feb 7, 2018 at 13:05
  • Aren't questions about WordPress specific to WordPress? – rickibarnes Commented May 3, 2018 at 8:50
  • Not necessarily. This exchange is for questions regarding developing with or on the WordPress software. This issue is with the specific parent theme you're using, which WordPress is responsible for. 3rd-party themes and plugins are off-topic here. – Jacob Peattie Commented May 3, 2018 at 8:53
Add a comment  | 

1 Answer 1

Reset to default 2

I am advised by WordPress support that this is a known bug and they are still working on fixing it as an issue.

Currently they suggest a manual workaround to overwrite the unwanted parent theme styles.

Post a comment

comment list (0)

  1. No comments so far