Change "Environment for all season" images f

  • Hayden
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
11 years 4 days ago #40131 by Hayden
Hello,

I want to change the two images on the home page for two new images keeping the "click to change" option. How do I do this?

I see from other posts how to remove it in layout.css but not how to replace them with alternative images

Cheers

Please Log in to join the conversation.

More
11 years 3 days ago #40139 by ivan.milic
In layout.css:

.fullwidth {
background: url(../images/custom/town_summer.jpg) no-repeat bottom;
background-size: cover;
}

and in index.php of template:
<script type="text/javascript">
jQuery(".subtext").toggle(
function () {
jQuery('.fullwidth').css('background-image','url(<?php echo $template_path; ?>/images/custom/town_winter.jpg)');
},
function () {
jQuery('.fullwidth').css('background-image','url(<?php echo $template_path; ?>/images/custom/town_summer.jpg)');
}
);
</script>

Please Log in to join the conversation.

Time to create page: 0.161 seconds
Powered by Kunena Forum