Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1472300

    Hi..

    I’ve noticed that the Enfold Facebook Like Box doesn’t works on mobile with both Chrome a Safari on iOS 18.1 on two sites, both sites runs WP 6.7.1, Enfold 6.0.6 PHP 8.2

    The two sites have the same widget setting. one site have a child theme but the other have a normal Enfold

    If from mobile browsers I choose che “Ask for Desktop site” option the widget works fine on the two sites.
    I’ve try to clear cache with no results..

    Links in private

    Thank You very much for help

    #1472646

    Hey newmediologo,
    I see that you have a 400 error and Refused to display frame because it set ‘X-Frame-Options’ to ‘deny’
    these two errors could be linked.
    I’m not sure what would cause this, but Safari and most AD blockers now block FB, so I recommend creating a image from your FB like box and linking it to your FB page, since most people will not see it otherwise.

    Best regards,
    Mike

    #1472689

    Thanks Mike, I’ve replaced the Linke Box on both site with an image using the Image Widget, the only difficult is that is not possible to set the link open in a new window because the tag target=”_blank” is not recognized.. Did You can suggest a solution for this..?

    The entire issue is really weird..
    Thank You..

    #1472941

    Hi,
    The team points to a FB issue that FB needs to correct: https://developers.facebook.com/community/threads/550478830783215/
    As for adding target=”_blank” to your image, please include an admin login in the Private Content area so we can examime.

    Best regards,
    Mike

    #1472944

    BHi MIke.. Login details in private.. Thanks

    #1472965

    Hi,

    Thank you for the info.

    We added this script in the functions.php file to set the target attribute to _blank.

    function ava_custom_script()
    { ?>
        <script>
            (function ($) {
                $(document).ready(function () { 
                    var firstColumn = $('#footer .flex_column:first');
                    
                    firstColumn.find('a').each(function () {
                        $(this).attr('target', '_blank');
                    });
                });
            }(jQuery));
        </script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script', 99);
    

    In order to preserve this modification, you may need to install a child theme. Please check the documentation below for more info: https://kriesi.at/documentation/enfold/child-theme/

    Best regards,
    Ismael

    #1472981

    Thanks @Ismael for fixing. But the Enfold Facebook Like Box It’s unuseful, doesn’t works on mobile for a FB issue and do not consent to select the link to open on a new tab.. It’s better and easier to use an HTML block widget to display the image and make then link opens directly in a new tab..

    Perhaps is useful that You revise the Facebook Like Box Widget to works properly.. Same thing for the Imege Widget

    Thank You Very Much for help

    • This reply was modified 1 week, 6 days ago by newmediologo.
    #1472989

    Thanks @MIke and @Ismael, I’ve replaced the Image Widget with an HTML Block displayng the image linked to the facebook page to open i a new tab.. More clean and easy because using the image Widget and not the Facebook Like Box Widget there’s no interaction with FB, is better that the Image Widget can have a checkbox to select for opening the link in a new tab..

    Thank You Very much for your help..

    #1473061

    Hi,

    Great! Good to know you’ve found a better alternative. Please feel free to open another thread if you have any more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Facebook Like Box Widget doesn’t work on mobile’ is closed to new replies.