- Posts: 16
- Thank you received: 0
Background turns into white in internal pages
-
tauorus
Inactive member - Topic Author
- New Member
Less
More
12 years 2 weeks ago #23637
by tauorus
Background turns into white in internal pages was created by tauorus
Hello, I have the problem that some people have posted here, the slider background isn't working in internal pages turns into white color after the first image, the solutions posted here don't helped me, I have changed the full path of the bgx.jpg images, changed .httaccess.txt to .httacces and the slider background doesn't work.
Also I have put a background image to the topmenu and header on template_css.php like:
.header {
background-color:<?php echo $headerBg; ?>;
background-image:url('images/header.jpg');
}
and
#topmenu {
//background-color:<?php echo $topMenuBg; ?>;
background-image:url('images/header.jpg');
//background-color:transparent;
}
but in internal pages these background image disappear.
Also I have put a background image to the topmenu and header on template_css.php like:
.header {
background-color:<?php echo $headerBg; ?>;
background-image:url('images/header.jpg');
}
and
#topmenu {
//background-color:<?php echo $topMenuBg; ?>;
background-image:url('images/header.jpg');
//background-color:transparent;
}
but in internal pages these background image disappear.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 2 weeks ago #23640
by ivan.milic
Replied by ivan.milic on topic Background turns into white in internal pages
open:
templates/hot_destinations/js/animbg.js
you will see :
var imgArr = new Array( // relative paths of images
'templates/hot_destinations/images/bg1.jpg',
'templates/hot_destinations/images/bg2.jpg',
'templates/hot_destinations/images/bg3.jpg',
'templates/hot_destinations/images/bg4.jpg'
);
first try to change it to:
var imgArr = new Array( // relative paths of images
'/templates/hot_destinations/images/bg1.jpg',
'/templates/hot_destinations/images/bg2.jpg',
'/templates/hot_destinations/images/bg3.jpg',
'/templates/hot_destinations/images/bg4.jpg'
);
if does not help:
var imgArr = new Array( // relative paths of images
'<your site base link>/templates/hot_destinations/images/bg1.jpg',
'<your site base link>/templates/hot_destinations/images/bg2.jpg',
'<your site base link>/templates/hot_destinations/images/bg3.jpg',
'<your site base link>/templates/hot_destinations/images/bg4.jpg'
);
replace <your site base link> with your site url.
templates/hot_destinations/js/animbg.js
you will see :
var imgArr = new Array( // relative paths of images
'templates/hot_destinations/images/bg1.jpg',
'templates/hot_destinations/images/bg2.jpg',
'templates/hot_destinations/images/bg3.jpg',
'templates/hot_destinations/images/bg4.jpg'
);
first try to change it to:
var imgArr = new Array( // relative paths of images
'/templates/hot_destinations/images/bg1.jpg',
'/templates/hot_destinations/images/bg2.jpg',
'/templates/hot_destinations/images/bg3.jpg',
'/templates/hot_destinations/images/bg4.jpg'
);
if does not help:
var imgArr = new Array( // relative paths of images
'<your site base link>/templates/hot_destinations/images/bg1.jpg',
'<your site base link>/templates/hot_destinations/images/bg2.jpg',
'<your site base link>/templates/hot_destinations/images/bg3.jpg',
'<your site base link>/templates/hot_destinations/images/bg4.jpg'
);
replace <your site base link> with your site url.
Please Log in to join the conversation.
-
tauorus
Inactive member - Topic Author
- New Member
Less
More
- Posts: 16
- Thank you received: 0
12 years 2 weeks ago #23691
by tauorus
Replied by tauorus on topic Background turns into white in internal pages
Hello ivan.milic
Thankyou for your help, but it doesn't help me, I changed to other 2 ways:
var imgArr = new Array( // relative paths of images
'/templates/hot_destinations/images/bg1.jpg',
'/templates/hot_destinations/images/bg2.jpg',
'/templates/hot_destinations/images/bg3.jpg',
'/templates/hot_destinations/images/bg4.jpg'
);
I am working in localhost in my pc:
var imgArr = new Array( // relative paths of images
'/var/www/cabalgatasegura/templates/hot_destinations/images/bg1.jpg',
'/var/www/cabalgatasegura/templates/hot_destinations/images/bg2.jpg',
'/var/www/cabalgatasegura/templates/hot_destinations/images/bg3.jpg',
'/var/www/cabalgatasegura/templates/hot_destinations/images/bg4.jpg'
);
but it doesn't work too.
What can I do?
Thank you.
Thankyou for your help, but it doesn't help me, I changed to other 2 ways:
var imgArr = new Array( // relative paths of images
'/templates/hot_destinations/images/bg1.jpg',
'/templates/hot_destinations/images/bg2.jpg',
'/templates/hot_destinations/images/bg3.jpg',
'/templates/hot_destinations/images/bg4.jpg'
);
I am working in localhost in my pc:
var imgArr = new Array( // relative paths of images
'/var/www/cabalgatasegura/templates/hot_destinations/images/bg1.jpg',
'/var/www/cabalgatasegura/templates/hot_destinations/images/bg2.jpg',
'/var/www/cabalgatasegura/templates/hot_destinations/images/bg3.jpg',
'/var/www/cabalgatasegura/templates/hot_destinations/images/bg4.jpg'
);
but it doesn't work too.
What can I do?
Thank you.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 2 weeks ago #23699
by ivan.milic
Replied by ivan.milic on topic Background turns into white in internal pages
/var/www/cabalgatasegura/templates/hot_destinations/images/bg1.jpg',
is disk path not web path , so:
' www.something.com/templates/hot_destinations/images/bg1.jpg '
if you past what is in quotes in browser address bar and go you must see that picture, that way you can be sure you are using right value for link.
is disk path not web path , so:
' www.something.com/templates/hot_destinations/images/bg1.jpg '
if you past what is in quotes in browser address bar and go you must see that picture, that way you can be sure you are using right value for link.
Please Log in to join the conversation.
Time to create page: 0.166 seconds