No styling applied to embedded section
-
Hello,
I apologise if I have misunderstood what this plugin does however I thought it was used to embed a Divi library item into a theme template file as it says “embed any Divi Library item … inside a php template by using a simple shortcode”.
I would like to use this feature to set a sitewide footer which is to appear on every page rather than the user having to insert a global footer section on each page or select a pre-defined layout.
I have created a layout in my Divi Library using the layout type “section”. I have styled it as I wish for it to appear on the site. The post ID is 1218.
I have therefore inserted the following in my footer.php theme file:
<?php echo do_shortcode('[showmodule id="1218"]'); ?>
It shows the content but no styling at all. The rows and columns are not shown, the background colors, fonts etc are all missing. It is default ugly html in times new roman.
If I insert the exact same global section from the library into the content area on the same page using the divi builder it looks all nice and styled but not the version inserted via shortcode by this plugin in the footer.php file.
I am using the divi builder with a custom blankslate theme. I have also tried with twenty twenty and same issue except it has some twenty twenty styles but still not divi styles in the footer insertion of the layout.
What am I missing?
- The topic ‘No styling applied to embedded section’ is closed to new replies.