Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #825117

    Hi,

    the facebook likebox didn’t show german language, as set in WP (perhaps because of de_formal) and I wanted to get off the facepile. So i set:

    .. data-show-facepile="false" ...;
    // and
    $langcode = "de_DE";

    in /enfold/framework/php/class-framework-widgets.php. It works fine. Is there a way to make these adjustments in the chid theme, without changing an original theme-file?

    Best regards,
    Günter

    #828558

    Hey Günter,

    You can try to add this code at your functions.php

    Best regards,
    John Torvik

    #828975

    Hi Torvik,

    which code do you mean with “this code”? I have only cited the one variable, I have changed from “true” to “false” in class-framework-widgets.php and the one line I have added to the 1737 lines of class-framework-widgets.php.

    Can you please tell me, how I can add these two items at my functions.php instead of changing the original file.

    Best regards,
    Günter

    #831287

    Hi,

    I asked John to check again, on what code was supposed to be here – he will do update the topic on first chance!

    Best regards,
    Basilis

    #837641

    Hi,
    3 weeks ago I asked for help. Is it yet foreseeable how long the editing of my request wiil stil need?
    Best Regards,
    Günter

    #838530

    Hi Günter,

    There are no actions or filters there, so you cannot really make changes in functions.php. What you can do is copy this file (enfold/framework/php/class-framework-widgets.php) to your child theme while preserving the whole folder structure and make your changes there.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #840121

    Hi Victora,

    I am happy, because the problem seems to be solved. But it was a long way. For people, who have simiiar problems:

    First I tried a copy enfold_child/framework/php/class-framework-widgets.php, but this mirror has no effect. The page falls back on enfold/framework/php/class-framework-widgets.php

    Then I found in elder support questions the method “reuqire( ‘class-framework-widgets.php’ ) ” in functions.php to embed the file.

    This causes the error message ‘No direct script access allowed’. So I had to comment out the first lie in class-framework-widgets.php: // if ( ! defined(‘AVIA_FW’)) exit(‘No direct script access allowed’);

    Then I got the error: ‘Can not redeclare the class in line 1737’. I deleted everything after the part, related to facebook:

    if (!class_exists('avia_fb_likebox')) {
    	class avia_fb_likebox extends WP_Widget {
            ...
            }
    }

    Now it really works!

    Thank you for your help and for the helpful elder ressources in the forum,
    Günter

    #840125

    Hi,

    I’m glad you were able to get this solved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Adapt the Facebook Likebox in a Child Theme?’ is closed to new replies.