× Discussion about "Cars" Joomla template.

I want to use background image in Style 1 Hot Cars

More
5 years 2 weeks ago #38919 by miq
Dear Sir,

I have purchased this car template and install it on my site. Currently I am using Template Style 1 for my website. I want to use background image of Style 3 in my current template style 1. How can I configure background image in my current Style 1

template.
Attachments:

Please Log in or Create an account to join the conversation.

More
5 years 2 weeks ago #38931 by ivan.milic
Add this to template_css.css:


Edit \templates\hot_cars\styles\style1.php
Chnage:

$backgroundImage = 0;

to:

$backgroundImage = "bg_metal.jpg";

Please Log in or Create an account to join the conversation.

More
5 years 2 weeks ago #38942 by miq
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 or Create an account to join the conversation.

More
5 years 2 weeks ago #38947 by ivan.milic
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 } ?>
}

Please Log in or Create an account to join the conversation.

More
5 years 2 weeks ago #38964 by miq
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.


Attachments:

Please Log in or Create an account to join the conversation.

More
5 years 2 weeks ago #38981 by ivan.milic
similar:

background-color:<?php echo $backgroundColor; ?>;


and $backgroundColor variable in style1.php

Please Log in or Create an account to join the conversation.

Moderators: milos
Time to create page: 0.168 seconds