• I created a child theme to Twenty Twenty-Four and I noticed three major changes:

    • The navigation menu in the Header used in the Original Theme is replaced by a test navigation that I created some days ago
    • All titles are now written with a Serif font
    • the color background desappeared

    By luke, desactiving the child theme fix all these changes, but I was not fully satisfied: maybe I made a mistake somewhere in my own css (I had not worked on css since 2015…) so I decided to use a minimalist ??styles.css?? file restricted to the minimum required by WordPress for creating a child theme:

    /*
    Theme Name:   Twenty Twenty-Four Child
    Theme URI:    https://example.com/twenty-twentyfour-child/
    Description:  Twenty Twenty-Four Child Theme
    Author:       B
    Author URI:   https://example.com
    Template:     twentytwentyfour
    Version:      1.0.0
    License:      GNU General Public License v2 or later
    License URI:  https://www.gnu.org/licenses/gpl-2.0.html
    Tags:         one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
    Text Domain:  twentytwentyfourchild
    */

    Unfortunately, the changes described above still occur.

    Any idea to solve this issue ?
    Thank you in advance.
    B.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there,

    Can you confirm that you face the same issue if you try with Create Block Theme? This way, we can compare and see in case you’re not doing something as expected.

    Thread Starter b2g56

    (@b2g56)

    Following your suggestion, I created a second child theme using the Create Block Theme and everything is OK: this second child theme gives exactly the same appearance as the original one.

    For information I’m working with WordPress 6.4.1 and Twenty TWenty-Four v1.0.

    I’m glad to hear it works as expected. My recommendation would be to compare the code of the second child theme (created by the Create Block Theme) with the one you created initially.

    This way, you can identify what is missing from it.

    Thread Starter b2g56

    (@b2g56)

    I compared the two styles.css files, the main differences are the order of some statements and three additional ones:

    Requires at least: 6.0
    Tested up to: 6.4.2
    Requires PHP: 5.7

    Thank you for your help.

    B.

    Hey @b2g56! It looks like the main differences might be on the theme.json file. There’s more about this file’s structure etc in this article in the theme handbook.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Creating a void child to Twenty Twenty-Four modifies the original styles’ is closed to new replies.