HomeBreadcrumb ArrowModulesBreadcrumb ArrowOpenCartBreadcrumb ArrowFacebookLoginBreadcrumb ArrowCustom Css for Facebook Page M...
New Discussion

Custom Css for Facebook Page Module

User Image
Paul member
#1 posted on 13/6/16

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

0
User Image
Teya Veselinova member
#2 posted on 14/7/16

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!

0