• Resolved nicole2292

    (@nicole2292)


    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nicole2292

    (@nicole2292)

    I have achieved what I need to do using the Global Footer in the theme builder however this still does not explain why the styling didn’t work using the shortcode to insert a layout item from the library into the footer.php file.

    Perhaps something for you to look into ??

    Plugin Author Fabrice ESQUIROL

    (@creaweb2b)

    Do you use a child theme ? I use a shortcode to embed global footer in footer.php and never had style issue.

    Plugin Author Fabrice ESQUIROL

    (@creaweb2b)

    No reply, i guess you solved your issue.

    Thread Starter nicole2292

    (@nicole2292)

    Hi Fabrice,

    I’m very sorry for the delayed response, I was not notified of your first reply.

    Yes I solved my issue by using the Divi theme builder and uninstalling your plugin. However I do think your plugin should work in the footer.php theme file.

    No, I do not use a child theme because I am not using the Divi theme. Rather I am using the Divi Page Builder as a standalone plugin with a custom theme as I mentioned in my initial post “I am using the divi builder with a custom blankslate theme”.

    I believe you plugin should work with the Divi page builder and a custom theme. Certainly it does work to insert the library item but the styles are not generated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No styling applied to embedded section’ is closed to new replies.