Top wide images change

  • flawless
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
11 years 8 months ago #28707 by flawless
Hello,
I have just installed the hot start one page template (with sample data) and I am making changes.
How can I replace the two images just under the top menu?
(not by replacing the initial images of course)

Thank you in advance

Konstantinos

Please Log in to join the conversation.

More
11 years 8 months ago #28713 by ivan.milic
Replied by ivan.milic on topic Top wide images change
In index.php of template near bottom:
Code:
<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>


and in layout.css:


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


change image path to point to your two images

Please Log in to join the conversation.

More
11 years 4 months ago #32106 by jwmuriel
Replied by jwmuriel on topic Top wide images change
Hi:

Can you say me how to increase the number of images, i nedd at least 3 o 5 images total

Saludos
Wladimir Muriel

Please Log in to join the conversation.

More
11 years 4 months ago #32120 by ivan.milic
Replied by ivan.milic on topic Top wide images change
Its designed for swapping two images. Maybe something like this:

<script type="text/javascript">
var f_images = [
'/images/custom/town_winter.jpg',
'/images/custom/town_summer.jpg',
'/images/custom/image3.jpg',
'/images/custom/image4.jpg',
...
'/images/custom/imageN.jpg'
];
var curr_image = 0;

jQuery(".subtext").toggle(
function () {
curr_image++;
if(curr_image == f_images.length)curr_image = 0;
jQuery('.fullwidth').css('background-image','url(<?php echo $template_path; ?>' + f_images[curr_image] + ')');
},
function () {
curr_image++;
if(curr_image == f_images.length)curr_image = 0;
jQuery('.fullwidth').css('background-image','url(<?php echo $template_path; ?>' + f_images[curr_image] + ')');
}
);
</script>

Please Log in to join the conversation.

More
11 years 2 months ago #34315 by info@keesvandenboogaart.nl
I checked the index.php and layout css.
Still my top image is invisible.
The images appears only in a small line.

www.onzekathedralenbouwers.nl/

Please Log in to join the conversation.

More
11 years 2 months ago #34319 by ivan.milic
Replied by ivan.milic on topic Top wide images change
put few <br/> in module content at bottom

Please Log in to join the conversation.

Time to create page: 0.181 seconds
Powered by Kunena Forum