Tagged: child theme, facebook
-
AuthorPosts
-
July 21, 2017 at 1:54 pm #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ünterJuly 23, 2017 at 4:19 am #828558Hey Günter,
You can try to add this code at your functions.php
Best regards,
John TorvikJuly 24, 2017 at 11:59 am #828975Hi 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ünterJuly 28, 2017 at 8:57 pm #831287Hi,
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,
BasilisAugust 11, 2017 at 8:04 pm #837641Hi,
3 weeks ago I asked for help. Is it yet foreseeable how long the editing of my request wiil stil need?
Best Regards,
GünterAugust 14, 2017 at 10:40 am #838530Hi 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,
VictoriaAugust 16, 2017 at 11:17 pm #840121Hi 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ünterAugust 16, 2017 at 11:25 pm #840125Hi,
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 -
AuthorPosts
- The topic ‘Adapt the Facebook Likebox in a Child Theme?’ is closed to new replies.