• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 Problem with code for homepage

#1
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.
 

Snog

Well-known member
#2
Code:
<xf:h1 hidden="true" />

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

<xf:widget key="featured_posts"/>
 
#3
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.
 

Snog

Well-known member
#4
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.png