• Resolved Pat

    (@patrickhaond)


    Hi there!

    I am trying to build a new website with that new theme.
    I wanted to add a small function, but I didn’t find theme files Editor option in the backend…
    How are we supposed to do?
    Create a child theme ? Use FTP software ?

    Thanks for any help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Pat

    (@patrickhaond)

    I used that link to create a child theme.

    https://twentig.com/theme/wordpress-twenty-twenty-four/

    It works, but I lost all modification I did first using Twenty Twenty-Four theme (for exemple modifying a template page footer)…

    Hi @patrickhaond! To add any code your site, it’s better to use a plugin like Code Snippets, or by creating a functionality plugin.

    To add here, newer block themes don’t use a functions.php, and you should avoid editing your theme’s files to avoid losing the changes to a theme update.

    Thread Starter Pat

    (@patrickhaond)

    Thank you @properlypurple for your help.
    So we are not supposed to use a child theme anymore ?
    And then I have to re create all customisations I did on the parent them ?

    Hey @patrickhaond! You can still use child themes. If you want to keep the customizations done in block themes, you should use the Create block theme plugin to generate your child theme.

    Thread Starter Pat

    (@patrickhaond)

    Thank you @properlypurple !

    Hi, I installed the plugin ‘Create block theme‘ to create a Child theme, but to my surprise there was no functions.php file inside! The whole idea with a child theme is to customise CSS and add custom code the functions.php file, as well as overriding other files if/when needed…

    I also use the plugin ‘Code Snippets‘ for quick testing, but in the end I always prefer to have a functions.php file.

    Anyone out there?

    Moderator Felipe Santos

    (@foosantos)

    Hi @rawdolphe, that’s because the main goal with Create Block Theme is to allow you to add your personal manual changes from being saved locally on your database to files on your theme.

    Apart from that, I would recommend the steps shared by properlypurple as well on creating a snippet or plugin for it if you want to add custom code.

    PS: If you need further help, please create your own topic instead of replying to other users topic for help. Thanks!

    Thanks Felipe, I was replying this topic to minimise the clutter; in some forums often they tell you: ‘there is already a thread about it…’ I am happy to start a new topic!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘functions.php ?’ is closed to new replies.