Tagged: styling
-
AuthorPosts
-
January 10, 2024 at 11:36 am #1429705
Hi,
I am building a new website with advanced layout builder. I seem to have a problem for various elements. If i change the styling in the advanced layout builder like e.g. the padding it is not visible on the published website.
One example for instance. I have a divider set up with custom layout with 30px width.
screenshot
However in the published site the width in the css is still 100%.
screenshotThese problems arise for most elements and styling parameters.
Any ideas?
January 10, 2024 at 3:21 pm #1429734Hey rbolijn1,
Did you try to clear the old CSS and JS files under Enfold->Performance? If that doesn’t help, then please post admin WordPress login details to your site in private, and let us know where we can see the actual problem.
Best regards,
RikardJanuary 10, 2024 at 4:12 pm #1429749This reply has been marked as private.January 11, 2024 at 9:16 am #1429791Hi,
Thank you for the info.
The issue occurs because the server fails to generate the post css files. These files contain the custom styles of the elements in the builder for a specific post or page. To temporarily fix the issue, we added this filter in the functions.php file.
/** * Filter to skip css file generation. * You can add logic to skip for certain pages/posts only. * * @since 4.8.6.1 * @param boolean $create * @return boolean true | false or anything else to skip generation of css file */ function custom_avf_post_css_create_file( $create ) { return false; } add_filter( 'avf_post_css_create_file', 'custom_avf_post_css_create_file', 10, 1 );
Best regards,
IsmaelJanuary 11, 2024 at 10:37 am #1429800Hi Ismael,
Thank you for your fix. Was this only happening to me? What is the longterm fix? Functions.php will not be overwritten after an update?
Kind regards,
Ronald
January 12, 2024 at 3:01 am #1429848Hi Ronald,
You need to use a Child theme in order to preserve these custom codes that are added to Enfold.
You can download the child theme here: https://kriesi.at/documentation/enfold/child-theme/
Follow the instructions on the link and move the custom codes from the parent theme to the child theme.
Hope this helps.Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.