XF 2.0 Problem with code for homepage

jr777

Active member
I'm trying to build a homepage, and I want to use an image as a background. It works great until I try to populate the page with widgets. Here's the code I'm trying to make work.

Code:
<xf:h1 hidden="true" />

<style>
body {
        background-image: url("https://www.germanglish.org/images/home.jpg");
}

<xf:widget key="featured_posts"/>

</style>

I'm also trying to hide the breadcrumbs, but none of the code I've been able to use in the past is working for some reason.
 
Code:
<xf:h1 hidden="true" />

<style>
body {
        background-image: url("https://www.germanglish.org/images/home.jpg");
}
</style>

<xf:widget key="featured_posts"/>
 
Code:
<xf:h1 hidden="true" />

<style>
body {
        background-image: url("https://www.germanglish.org/images/home.jpg");
}
</style>

<xf:widget key="featured_posts"/>
I tried that as well, but it didn't work either. Neither the image nor the widget displays.
 
It worked for me in a quick test using an XF page and a widget that exists on my system. Don't know what to tell you without knowing if any errors happened....

ger.webp
 
Back
Top Bottom