Background image change in Sportal

  • joa
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 2 days ago #28389 by joa
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);
}

Please Log in to join the conversation.

More
12 years 1 day ago #28405 by ivan.milic
Your site is not accessible ?

Please Log in to join the conversation.

  • joa
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 1 day ago #28434 by joa
Sorry joomla.bc-marburg.de

Please Log in to join the conversation.

More
12 years 23 hours ago #28451 by ivan.milic
Move image to <joomla root>/images folder , expected path is:
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
  • Member
More
11 years 11 months ago #28581 by joa
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

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
11 years 11 months ago #28585 by milos
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

Please Log in to join the conversation.

Time to create page: 0.100 seconds
Powered by Kunena Forum