Log in  \/ 
x
or
x
x
Register  \/ 
x
or


search
Welcome, Guest
Username: Password: Remember me
Latest Version: 1.1
changelog

TOPIC: Background Image missing?

Background Image missing? 23 Sep 2011 14:34 #1770

  • dig814
  • dig814's Avatar
  • OFFLINE
  • Secret Agent
  • Posts: 536
  • Thank you received: 140
  • Karma: 96
I was just helping a customer and realized that if your site is in a subfolder, then the background image will not show due to the way the path was set for Gratis.

To correct this:

Edit this file:
yoursite.com/website/templates/gratis/yjsgcore/yjsg_main.php

Line 30. Change this:
<body id="stylef<?php echo $default_font_family ?>" style="background:<?php echo $back_color; ?> url(/templates/gratis/images/style1/body-bg<?php echo $back_image; ?>.png) fixed;">

to this:
<body id="stylef<?php echo $default_font_family ?>" style="background:<?php echo $back_color; ?> url(<?php echo $this->baseurl ?>/templates/gratis/images/style1/body-bg<?php echo $back_image; ?>.png) fixed;">
The topic has been locked.
Moderators: dig814

Explore

Your cart is empty.