Home New Guten Forums WoodMart support forum Code editor deleted all the codes in woodmart child functions.php

Code editor deleted all the codes in woodmart child functions.php

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #668443

    efealdogan.ru
    Participant

    Wordpress code editor deleted all the codes in woodmart child functions.php. Can you send those codes again?

    #668464

    Hello,

    Below is a basic starter template for the functions.php file in a Woodmart Child Theme. This file is typically used to enqueue styles/scripts and add custom functionality:

    <?php
    /**
     * Enqueue script and styles for child theme
     */
    function woodmart_child_enqueue_styles() {
        wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'woodmart-style' ), woodmart_get_theme_info( 'Version' ) );
    }
    add_action( 'wp_enqueue_scripts', 'woodmart_child_enqueue_styles', 10010 );

    You can safely paste this into your functions.php file under your Woodmart child theme directory.

    If your own code is deleted from functions.php,you can try restoring it. Check if your hosting provider offers daily backups—restore the file from a recent backup.

    If you have any questions, feel free to contact us.

    Best Regards,

    #668873

    efealdogan.ru
    Participant

    Okay than thank you so much for you support

    #668978

    Hello,

    You’re very welcome! If you need anything else, feel free to reach out!

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards,

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Code editor deleted all the codes in woodmart child functions.php’ is closed to new replies.