Inline code ?

More
5 years 6 months ago - 5 years 6 months ago #75005 by lipatovroman
Replied by lipatovroman on topic Inline code ?

ggppdk wrote: Hello
create a new custom layout for the module in you Joomla template,
create the new one by copying the one you are using with a new name

- and then select the new layout in module parameters
and remove the CSS that you do not want from it



Yes!
I created new template inside module directory

and removed this code:
Code:
$css = ''. /* CONTAINER of featured items */' #mod_fcitems_box_featured_'.$uniq_ord_id.' { }'. /* CONTAINER of each featured item */' #mod_fcitems_box_featured_'.$uniq_ord_id.' div.mod_flexicontent_standard_wrapper { }'. /* inner CONTAINER of each standard item */' #mod_fcitems_box_featured_'.$uniq_ord_id.' div.mod_flexicontent_standard_wrapper_innerbox { '.($inner_inline_css_feat ? ' padding: '.$padding_top_bottom_feat.'px '.$padding_left_right_feat.'px !important; border-width: '.$border_width_feat.'px!important; margin: '.$margin_top_bottom_feat.'px '.$margin_left_right_feat.'px !important; ' : '').' }'. /* CONTAINER of standard items */' #mod_fcitems_box_standard_'.$uniq_ord_id.' { }'. /* CONTAINER of each standard item */' #mod_fcitems_box_standard_'.$uniq_ord_id.' div.mod_flexicontent_standard_wrapper { }'. /* inner CONTAINER of each standard item */' #mod_fcitems_box_standard_'.$uniq_ord_id.' div.mod_flexicontent_standard_wrapper_innerbox { '.($inner_inline_css ? ' padding: '.$padding_top_bottom.'px '.$padding_left_right.'px !important; border-width: '.$border_width.'px!important; margin: '.$margin_top_bottom.'px '.$margin_left_right.'px !important; ' : '').' }'. '' ;

Now HTML code is more clean.

Thanks!!!
Last edit: 5 years 6 months ago by lipatovroman.

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago #75006 by ggppdk
Replied by ggppdk on topic Inline code ?
Hello

the CSS that you removed is added by this layout

so you can remove it
and if you need similar you can add it to an existing CSS file


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.241 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline