Jump to content

Prestashop 1.7.6.1 Facebook box not showing on mobile devices


melkij22

Recommended Posts

Сheck if the Facebook Like Box iframe has a width and height set. Make sure they are set to responsive values like 100% for width. If not, try adding this to your custom.css:

.fb_iframe_widget iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

This should help the iframe adapt to smaller screens.

Link to comment
Share on other sites

2 hours ago, NordicDesigner said:

Сheck if the Facebook Like Box iframe has a width and height set. Make sure they are set to responsive values like 100% for width. If not, try adding this to your custom.css:

.fb_iframe_widget iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

This should help the iframe adapt to smaller screens.

add your suggested code to custom.css, still no luck

Link to comment
Share on other sites

  • 2 weeks later...
On 12/6/2024 at 4:10 PM, melkij22 said:

add your suggested code to custom.css, still no luck

Hi! Check if the Facebook iframe is wrapped in a container. If yes, ensure the container is responsive. Add this to your custom.css:

.fb_iframe_widget, .fb_iframe_widget span, .fb_iframe_widget iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

Also, make sure the parent container isn’t restricted by overflow:hidden or fixed dimensions.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...