Ancestors

Toot

Written by Luke Harby on 2025-01-12 at 14:30

If there are any #Wordpress dev experts here, please have a look at this post:

https://wordpress.stackexchange.com/questions/428101/child-theme-is-inheriting-from-parent-theme-but-seems-to-have-additionally-rese

Trying to make a child theme, it kind of works but seems to reset stuff which is not present in the parent theme (or WP config, exports, templates etc).

In the past I merely had to create a stylesheet in the child and reference the parent and everything else worked, but this iteration seems more complex.

Any retoots greatly appreciated.

=> More informations about this toot | More toots from lukeharby@octodon.social

Descendants

Written by Pauxlll Kruczynski on 2025-01-14 at 22:48

@lukeharby The way you're enqueing the stylesheets may be the issue. SEe step 5 here:

https://wordpress.com/support/themes/child-themes/

and this:

https://developer.wordpress.org/themes/advanced-topics/child-themes/

“ideal method of enqueueing stylesheets is when a parent theme loads both its own style.css & child theme’s style.css. Not all themes do this. Examine the code of the parent theme to see which stylesheets it is enqueueing.

If the parent theme loads both stylesheets, the child theme does not need to do anything"

https://developer.wordpress.org/themes/advanced-topics/child-themes/

=> More informations about this toot | More toots from paulkruczynski@mastodon.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113815860491867232
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
253.043756 milliseconds
Gemini-to-HTML Time
0.577303 milliseconds

This content has been proxied by September (ba2dc).