• Resolved mllapan

    (@mllapan)


    Hi.

    I have noticed that anything added after

    function run() {
    Core::get_instance();
    }

    bootstrap();

    will not work.

    So how do we add shortcodes and other custom functions to functions.php?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @mllapan,

    Thank you for using Raft.

    To add custom code to the theme, you can create a child theme by following the steps in this article.

    For adding CSS code only, you can use the Additional CSS editor within the Customizer; here is a guide of how to access it.

    Regards,
    Stefan

    Thread Starter mllapan

    (@mllapan)

    Hi, Stefan.

    Is there possibility to modify functions.php of main theme without child theme, because I used plugin to copy full theme so I can freely do own customizations?

    • This reply was modified 2 years, 9 months ago by mllapan.

    Hi @mllapan,

    It is possible to modify the functions.php file of the theme, however, the changes applied may be overwritten on the next update.

    Alternatively, you can add the changes in a custom plugin. Here is an example of how to create one.

    Regards,
    Stefan

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How do we add to functions.php’ is closed to new replies.