badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

broken function.php

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #43071
    chriswieser
    Participant

    Hi folks,

    i have got an issue right now.
    I played with my functions.php file and broke it.

    So as next step i took the original from the theme and replaced mine with it.
    Still does not work.
    I got this error: “Fatal error: Call to undefined function add_action() in /var/www/intertechno.at/wp-includes/functions.php on line 14”

    I am using a child-theme.

    url is intertechno.widder.at

    thanks in advance and best regards

    chris

    EDIT:

    previous functions.php content from backendview:

    <?php
    //
    // Recommended way to include parent theme styles.
    // (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
    //
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array(‘parent-style’)
    );
    }
    //
    // Your code goes below
    //

    #43074

    Hi chriswieser,

    Did you made code customization? If yes then First install the fresh copy of interface-pro theme before doing it make a backup of it. There some thing might went wrong.

    After solving the issues on parent then then only make modification on the child theme you want. Please don’t make any changes in the parent theme because while updating to new version your customized code will be lost.

    Thank you!

    #43075
    chriswieser
    Participant

    Hi,

    thanks alot for your reply.

    Yeah i tried to customize the code by adding a line.

    Will there be any dataloss if i reinstall the theme?
    The problem is i cant get into my backend.

    thanks and best regards

    chris

    #43081

    Hi chriswieser,

    Yes it you haven’t made a child theme and made direct changes in the code then your customized code will be lost. So better make your backup first from you ftp if you are not getting access to backend.

    Thank you!

    #43084
    chriswieser
    Participant

    thanks, got it solved through replace the functions.php files!

    #43099

    That’s great chriswieser

    Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.