• Resolved heerenleed

    (@heerenleed)


    Hi all,
    I am working on a website and I am trying to get a background image to display. I use the Twenty-Twentyone theme and when I deactivate Twentig the background image displays just fine. I suspected a conflict so I deactivated all plugins, and then reactivated them one by one, as I should. When I reactivated Twentig the background image disappears. Is there any setting I did not discover, or is it a bug? Is there a known workaround? I really like Twentig, so I would like to keep it, but in this case, the background image comes first. Any thoughts?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Twentig

    (@twentig)

    Hi @heerenleed,

    When you limit the site width by setting a value for “Site Max-Width” (Customizer > Twentig Options > Site Layout), it creates a boxed layout. By default, the inner page inherits the body background-color, which covers up the body background image.

    To always display the image, you can either leave the “Site Max-Width” setting empty, or if you want to keep the site width limited, you can add some custom CSS (Customizer > Additional CSS):

    .site{ 
    	background-color: transparent;
    }
    
    body.custom-background { 
    	background-image: url("https://www.nicholsonkring.nl/wp-content/uploads/2021/03/achtergrondfinal.gif") !important;
    }

    I hope the above is useful to you.

    If you enjoy Twentig, please rate it. It would really help me out ??
    Tom

    Thread Starter heerenleed

    (@heerenleed)

    Thank you very much indeed, for this prompt answer. After asking the question I have kept experimenting, and to my surprise I found that the background image issue did not exist on another site I run. I noticed I used a 2021 child theme there, so I quickly installed one in this site and found the background image was there. Of course, I never realised I had not yet limited the site width, which I am now not going to do.

    Furthermore, I like your plugin very mu8ch, as it takes over the job of three different plugins in one go: a decent blog grid layout, fonts, and a sticky menu. Especially the blog grid and the sticky menu are essential to any decent site that has a blog function, I should say. Also very practical to set the changeover point for the hamburger menu.
    I will go and give the plugin a 5-star menu now!
    thanks again,
    Peter

    Plugin Author Twentig

    (@twentig)

    Thanks for the review ??

    Have a nice day,
    Tom

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘background image dissapears after activating Twentig’ is closed to new replies.