Child theme not work

I installed the theme child, loaded into the path functions / widget-login.php but this is not updated on the home, how come? thank you

Comments

  • Hi,

    child theme is fine of course because we tested it many times. We recommend to have a look at https://codex.wordpress.org/Child_Themes where all everything was explained.

    Thanks!
  • hello, sorry but I can not make it work, I have already uploaded the files in the language folder and they work without problems, but when I go to load the widget-login.php file that does not load the theme. I uploaded the above file in the directory (/betheme-child/functions/widget-login.php).
    I modified the file functions in the theme child in this way: 

    /* ---------------------------------------------------------------------------
     * Load Textdomain
     * --------------------------------------------------------------------------- */
    add_action( 'after_setup_theme', 'mfnch_textdomain' );
    function mfnch_textdomain() {
        load_child_theme_textdomain( 'betheme',  get_stylesheet_directory() . '/languages' );
        load_child_theme_textdomain( 'mfn-opts', get_stylesheet_directory() . '/languages' );
    load_child_theme_textdomain( 'betheme',  get_stylesheet_directory() . '/functions' );
        load_child_theme_textdomain( 'mfn-opts', get_stylesheet_directory() . '/functions' );
    }
  • There is no need to edit child theme files. Please check the following links where everything was explained:

    http://betterwp.net/wordpress-tips/create-pot-file-using-poedit/

    http://betterwp.net/wp-content/uploads/2011/02/a123-new-path.gif
  • the lang file work fine, but the other file can not work
  • It does not work because you are doing it wrong. The file should be loaded as the following:
    require_once( get_stylesheet_directory() .'/functions/widget-login.php' );
    we did checked and it works of course. But one thing you need to do as well is to replace:
    class Mfn_Login_Widget extends WP_Widget {
    with:
    if ( ! class_exists('Mfn_Login_Widget') ){
        class Mfn_Login_Widget extends WP_Widget {
    under widget login file. But please notice, that because files customization in reference to Item Support Policy are not included/allowed, you need to contact with your web developer if you don't know how to customize child theme.
  • edited August 2016
    resolved, the problem was that not having installed the theme child from the beginning, I never updated the theme parent, then the child theme updated to the latest version that was not working.
  • Great, we're glad to know you sorted it out.
Sign In or Register to comment.