At the moment I'm trying to figure out how to achieve to bundle the custom CSS to the final HTML file in order to have the exact same result on a template page as the one obtained from the page builder.
I've figured out how to link the required CSS for my theme's elements, but at the moment I cannot seem to find the way to achieve the short code rasterizer to add the custom CSS bundled with short codes, such as this one: '[vc_column_text css=".vc_custom_1618306423568{margin-top: 5% !important;margin-bottom: 5% !important;}"]' into the head as a style.
Any tips about which file should I edit or any documentation that could prove to be useful?
Solved by looking for the function which bundles the specified custom CSS into the head, being the functions 'addPageCustomCss' and 'addShortcodesCustomCss' located in the file 'class-vc-base.php'. By creating an instance, and using the previously mentioned functions passing as parameter the template's page id, now everything is seen as it should be.
Hello there!
At the moment I'm trying to figure out how to achieve to bundle the custom CSS to the final HTML file in order to have the exact same result on a template page as the one obtained from the page builder.
I've figured out how to link the required CSS for my theme's elements, but at the moment I cannot seem to find the way to achieve the short code rasterizer to add the custom CSS bundled with short codes, such as this one: '[vc_column_text css=".vc_custom_1618306423568{margin-top: 5% !important;margin-bottom: 5% !important;}"]' into the head as a style.
Any tips about which file should I edit or any documentation that could prove to be useful?
Thank you very much.
Solved by looking for the function which bundles the specified custom CSS into the head, being the functions 'addPageCustomCss' and 'addShortcodesCustomCss' located in the file 'class-vc-base.php'. By creating an instance, and using the previously mentioned functions passing as parameter the template's page id, now everything is seen as it should be.
Ticket can be closed now.