Hi, I'm working with WPBakery and ACF and I have created a single-academia.php file (custom post type called 'academia').
The problem I have is that when I create a page using WPBakery it looks great, but if I modify the code and use do_shortcode() with the same shortcodes I get from WPBakery, there are some styles that are not applied.
I don't know which could be the solution, other than importing them manually.
Hi Tahir, I have attached an image showing the code I have, but <style> tag is still empty. Also I have attached the way I create the custom post type in functions.php.
Hi,
I'm working with WPBakery and ACF and I have created a single-academia.php file (custom post type called 'academia').
The problem I have is that when I create a page using WPBakery it looks great, but if I modify the code and use do_shortcode() with the same shortcodes I get from WPBakery, there are some styles that are not applied.
I don't know which could be the solution, other than importing them manually.
Page using WPBakery (correct styles): http://prueba.economiahumana.org/academia-detall-fake/?preview_id=1454&preview_nonce=58f05a6161&_thumbnail_id=-1&preview=true
Page using CODE Shortcodes (wrong styles): http://prueba.economiahumana.org/academia/fundamentos-de-economia-humana-e-introduccion-a-la-lkc/
As you can see the javascript works.
Thanks,
Jordi
Hey Jordi ,
Thanks for reaching out! .
You will have to generate the styles using:
Best,
ThemeNectar Support Team
Hi Tahir,
thanks for your reply.
The style tag is empty if I add your code to my code (I guess I need to change the ID of it, right?
Hey Again,
Yes, that is sample code for the Global Section. You will have to adjust it based on the elements you are trying to render.
The below code is how you can generate the styling :
Best,
ThemeNectar Support Team
Hi Tahir,
I have attached an image showing the code I have, but <style> tag is still empty.
Also I have attached the way I create the custom post type in functions.php.
Let me know what I'm doing wrong. Thanks :)
Attached files: Captura de pantalla 2025-02-20 094626.png
Captura de pantalla 2025-02-20 094804.png
Hey Again,
Try moving the code after the shortcode is set:
and use this line to output the styles:
Best,
ThemeNectar Support Team