- Posts: 82
- Thank you received: 0
I want to use background image in Style 1 Hot Cars
-
miq
Inactive member - Topic Author
- Member
Less
More
10 years 8 months ago #38919
by miq
I want to use background image in Style 1 Hot Cars was created by miq
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 8 months ago #38931
by ivan.milic
Replied by ivan.milic on topic I want to use background image in Style 1 Hot Cars
Add this to template_css.css:
Edit \templates\hot_cars\styles\style1.php
Chnage:
$backgroundImage = 0;
to:
$backgroundImage = "bg_metal.jpg";
Edit \templates\hot_cars\styles\style1.php
Chnage:
$backgroundImage = 0;
to:
$backgroundImage = "bg_metal.jpg";
Please Log in to join the conversation.
-
miq
Inactive member - Topic Author
- Member
Less
More
- Posts: 82
- Thank you received: 0
10 years 8 months ago #38942
by miq
Replied by miq on topic I want to use background image in Style 1 Hot Cars
Thanks for your help. I want to change the location of the image from /templates/hot_cars/images/bg_metal.jpg to new background image location /images/bg_metal.jpg. How can I change it in Style 1.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 8 months ago #38947
by ivan.milic
Replied by ivan.milic on topic I want to use background image in Style 1 Hot Cars
You can change only name form style1.php
path you can change in /css/template_css.php
body {
color:<?php echo $bodyText; ?>;
background-color:<?php echo $backgroundColor; ?>;
<?php if($backgroundImage) { ?>
background-image:url(<?php echo $template_path ?>/images/<?php echo $backgroundImage; ?>);
background-repeat:repeat<?php if($backgroundImage=="bg_wood.jpg") { ?>-x;<?php } ?>
<?php } ?>
}
path you can change in /css/template_css.php
body {
color:<?php echo $bodyText; ?>;
background-color:<?php echo $backgroundColor; ?>;
<?php if($backgroundImage) { ?>
background-image:url(<?php echo $template_path ?>/images/<?php echo $backgroundImage; ?>);
background-repeat:repeat<?php if($backgroundImage=="bg_wood.jpg") { ?>-x;<?php } ?>
<?php } ?>
}
Please Log in to join the conversation.
-
miq
Inactive member - Topic Author
- Member
Less
More
- Posts: 82
- Thank you received: 0
10 years 8 months ago #38964
by miq
Replied by miq on topic I want to use background image in Style 1 Hot Cars
Thanks once again for your support. My last question is that I want to change the color of background from white to orange. But the problem is that if I did from Style 1 the whole color change including the content background also. Can I change only the background color and not the content background color.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 8 months ago #38981
by ivan.milic
Replied by ivan.milic on topic I want to use background image in Style 1 Hot Cars
similar:
background-color:<?php echo $backgroundColor; ?>;
and $backgroundColor variable in style1.php
background-color:<?php echo $backgroundColor; ?>;
and $backgroundColor variable in style1.php
Please Log in to join the conversation.
Time to create page: 0.184 seconds