- Posts: 103
- Thank you received: 1
Background image change in Sportal
-
joa
Inactive member -
Topic Author
- Member
-
Less
More
12 years 2 days ago #28389
by joa
Replied by joa on topic Background image change in Sportal
joomla.bs-marburg.de
I put a # in front of the line to keep the background blue, removing it means setting it to white
body {
font-size:<?php echo $mainFontSize; ?>px;
color:<?php echo $bodyText; ?>;
<?php if ($backgroundImage!="none") { ?>
background:<?php echo $backgroundColor; ?> url(<?php echo $template_path; ?>/images/bg_<?php echo $backgroundImage; ?>.png);
<?php }else{ ?>
background:<?php echo $backgroundColor; ?>;
<?php } ?>
# background:url(../images/Parkett_blau_30.png);
}
I put a # in front of the line to keep the background blue, removing it means setting it to white
body {
font-size:<?php echo $mainFontSize; ?>px;
color:<?php echo $bodyText; ?>;
<?php if ($backgroundImage!="none") { ?>
background:<?php echo $backgroundColor; ?> url(<?php echo $template_path; ?>/images/bg_<?php echo $backgroundImage; ?>.png);
<?php }else{ ?>
background:<?php echo $backgroundColor; ?>;
<?php } ?>
# background:url(../images/Parkett_blau_30.png);
}
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 1 day ago #28405
by ivan.milic
Replied by ivan.milic on topic Background image change in Sportal
Your site is not accessible ?
Please Log in to join the conversation.
-
joa
Inactive member -
Topic Author
- Member
-
Less
More
- Posts: 103
- Thank you received: 1
12 years 1 day ago #28434
by joa
Replied by joa on topic Background image change in Sportal
Sorry joomla.bc-marburg.de
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 23 hours ago #28451
by ivan.milic
Replied by ivan.milic on topic Background image change in Sportal
Move image to <joomla root>/images folder , expected path is:
Also you can do :
background-image: url(../images/Parkett_blau_30.png);
or
background:<?php echo $backgroundColor; ?> url(../images/Parkett_blau_30.png);
so you keep both color and image
Code:
http://joomla.bc-marburg.de/images/Parkett_blau_30.png
Also you can do :
background-image: url(../images/Parkett_blau_30.png);
or
background:<?php echo $backgroundColor; ?> url(../images/Parkett_blau_30.png);
so you keep both color and image
Please Log in to join the conversation.
-
joa
Inactive member -
Topic Author
- Member
-
Less
More
- Posts: 103
- Thank you received: 1
11 years 11 months ago #28581
by joa
Replied by joa on topic Background image change in Sportal
Sorry the backround link just works on the home page joomla.bc-marburg.de but not if you click on one of the submenues e.g. Bundesliga - Tickets.
What is the code to keep the background on all pages/the whole website?
Thx
What is the code to keep the background on all pages/the whole website?
Thx
Please Log in to join the conversation.
-
milos
Support Staff -
- Moderator
-
Less
More
- Posts: 6806
- Thank you received: 724
11 years 11 months ago #28585
by milos
Replied by milos on topic Background image change in Sportal
Hi Joa,
You can use absolute paths of the background images. In example:
background-image: url( joomla.bc-marburg.de/images/Parkett_blau_30.png );
Maybe a better solution is to edit global configuration and use SEF URLs with mod_rewrite. In this case, you should rename htaccess.txt to .htaccess in your Joomla root folder.
Thanks
Milos
You can use absolute paths of the background images. In example:
background-image: url( joomla.bc-marburg.de/images/Parkett_blau_30.png );
Maybe a better solution is to edit global configuration and use SEF URLs with mod_rewrite. In this case, you should rename htaccess.txt to .htaccess in your Joomla root folder.
Thanks
Milos
Please Log in to join the conversation.
Time to create page: 0.100 seconds