Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #283255

    Hi,

    we have german po/mo files and changes in framework/php/class-framework-widgets.php. Both doesn’t work in the child theme. What can we do?

    Best regards
    David

    #283395

    Hi DDamjanovic!

    Thank you for using the theme!

    Can you please explain it a little bit more? What are you trying to change specifically?

    Regards,
    Ismael

    #283716

    We have german po/mo files and changes in framework/php/class-framework-widgets.php for the tag cloud. We move these files to Sentence child theme (correct folders) and nothing happens. No german and no modified tag cloud.

    Best regards
    David

    #283856

    Hi!

    Unfortunately you’ll need to edit the parent files in that case. Child theme inheritance doesn’t work with php included files which is what the framework is.

    Best regards,
    Devin

    #284000

    Hi Devin,

    OK – and the german language files need to be in parent, too?

    Best regards

    #284559

    Hi!

    Yes, but you can load the translation files from the child threme folder if you add some code to the child theme functions.php file:

    
    add_action('after_setup_theme', 'avia_lang_setup');
    function avia_lang_setup()
    {
    $lang = get_stylesheet_directory()  . '/lang';
    load_child_theme_textdomain('avia_framework', $lang);
    }
    

    Best regards,
    Peter

    #284603

    K, thank you!

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

The topic ‘Sentence Child Theme Problems’ is closed to new replies.