• Resolved Tuuuukka

    (@tuuuukka)


    So let’s say I have a page called YYY where I’d like to load content from a page called NNN. The content of the page NNN contains UAG blocks.

    I will load the content from the page NNN using get_pages() and do apply_filters('the_content', $content);. Then I’ll print that content.

    Now, on the page YYY I have content from both these pages. The only problem is that since the content from YYY contains UAG blocks, their styles aren’t loaded because I’m not on the page those blocks actually belong to. If I visit the actual page YYY, the styles are loaded as expected.

    Is there a way to get the styles when fetching content with PHP?

    This is very important when building a one page site from separate pages.

Viewing 1 replies (of 1 total)
  • Plugin Support Team Brainstorm Force

    (@brainstormteam)

    Hey @tuuuukka ,

    Thank you for reaching us out.
    Such a scenario can not be achieved for now. We generate dynamic CSS for every page. This CSS is not called when you call the content using custom PHP code.

    I hope that clarifies your doubts.

    Regards,
    Vrunda Kansara

Viewing 1 replies (of 1 total)
  • The topic ‘Getting block styles when the block is loaded from another page’ is closed to new replies.