melkij22 Posted December 4, 2024 Share Posted December 4, 2024 Hello, I made group like box in https://developers.facebook.com Added to footer.tpl code . On PC a see facebook group etc. everything is ok. What I need to do now so that fb group also be on mobile? As i know I need to edit custom.css in template, but don't know, what to write there Link to comment Share on other sites More sharing options...
melkij22 Posted December 5, 2024 Author Share Posted December 5, 2024 as I understood, it's ( facebook like group ) not showing in chrome on mobile phones. Link to comment Share on other sites More sharing options...
NordicDesigner Posted December 6, 2024 Share Posted December 6, 2024 С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 More sharing options...
melkij22 Posted December 6, 2024 Author Share Posted December 6, 2024 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 More sharing options...
NordicDesigner Posted December 14, 2024 Share Posted December 14, 2024 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 More sharing options...
ST-THEMES Posted December 19, 2024 Share Posted December 19, 2024 Hi, Is it possible to provider your site URL so we can take a look at the problem? Best regards. Link to comment Share on other sites More sharing options...
WebDesk Solution Posted February 5 Share Posted February 5 Hello, We have analyzed your issue and provided the following solution, Step 1: Include the JavaScript SDK on your page. Ideally, add it right after the opening <body> tag. You can do this by modifying layout-both-columns.tpl the file located at themes/classic/templates/layouts/layout-both-columns.tpl Add the following code: Screenshot for your Reference: https://prnt.sc/p2UaKOIMJEdR Step 2: Insert the plugin code at the desired location on your page. To display the plugin in the footer, edit the footer.tpl file located at themes/classic/templates/_partials/footer.tpl Add the following code: <div class="fb-page" data-href="https://www.facebook.com/avrahome.lt" data-tabs="" data-width="360" data-height="300" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"> <blockquote cite="https://www.facebook.com/avrahome.lt" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/avrahome.lt">AVRAhome.lt</a></blockquote> </div> Step 3: Clear the PrestaShop cache from the Back Office to ensure the changes take effect. Visit the frontend to verify that the Facebook-like box in mobile devices. We hope this solution works for you!! If you find our reply helpful, please hit Like it. A North American PrestaShop Development Agency that delivers powerful results, innovation, and secure digital transformation. If you find our reply helpful, please hit Like it. Thank You, WebDesk Solution Support Team Get a Free Quote | Email | PrestaShop Partner | PrestaShop Development Agency | Call Us 877.536.3789 Location: 150 King St. W. Toronto, ON M5H 1J9 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now