|
|
Custom Css for Facebook Page Module |
I installed your free Facebook Page module on Open Cart version 1.5.6.4 and everything seems to work with the exception of the custom css box. When I type in something like: .fb-page {margin:0 auto;} and .fb_iframe_widget {margin: 0 auto;} to try and center it on my page at the bottom of the container.
When I click the save button it erases all my css code and nothing is done. I've tried to find the css stylesheet for the module but can only find one for the admin. Any ideas?
Paul
Hello Paul,
Can you please try the following:
1. Open tha admin/view/template/module/tieredgifts/tab_settings.php
2. find the following line on line 102:
<textarea class="form-control" name="<?php echo $moduleNameSmall; ?>[CustomCSS]" placeholder="<?php echo $custom_css_placeholder; ?>" rows="4"><?php if(isset($moduleData['CustomCSS'])) { echo $moduleData['CustomCSS']; } else { echo ""; }?></textarea>
and change it to:
<textarea class="form-control" name="<?php echo $moduleName; ?>[CustomCSS]" placeholder="<?php echo $custom_css_placeholder; ?>" rows="4"><?php if(isset($moduleData['CustomCSS'])) { echo $moduleData['CustomCSS']; } else { echo ""; }?></textarea>
This should solve the issue.
I hope this helps!