Background

More
7 years 7 months ago #46760 by dh12355@gmx.de
Background was created by dh12355@gmx.de
is it with this template or with another template possible to display different background files at different menupoints?
In this moment there is only one picture ( content_bg.png ) displayed.

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
7 years 7 months ago #46761 by milos
Replied by milos on topic Background
Hello

Yes, in page source, check body class of each page. This is default from original template:
Code:
.contentrow { padding-top: 25px; padding-bottom: 25px; border-top: 3px solid #eee; border-bottom: 3px solid #eee; background: url(../images/custom/content_bg.png); }

and this will be, for example, for About Us page (on our original demo):
Code:
.about-us .contentrow { background: url(../images/custom/my_bg_image.png); }

You can add this in custom.css file or in template options (Custom > CSS).

Thanks,
Milos

Please Log in to join the conversation.

More
7 years 7 months ago #46762 by dh12355@gmx.de
Replied by dh12355@gmx.de on topic Background
ok thanks for your reply.

But i need this for the complete site not only for contentrow.
Is it also possible?

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
7 years 7 months ago #46763 by milos
Replied by milos on topic Background
Body background will be visible only in these rows that don't have background set (image or color). You can set the body background image from template parameters. You can then use the similar approach to alter it on some pages:
Code:
body.about-us{ background: url(../images/custom/my_bg_image.png); }

Thanks,
Milos

Please Log in to join the conversation.

Time to create page: 0.290 seconds
Powered by Kunena Forum