Advertisement:

Author Topic: [résolu]slider for the photos in the theme bender  (Read 493 times)

grisbi

  • Jr. Member
  • **
  • Posts: 51
[résolu]slider for the photos in the theme bender
« on: July 28, 2019, 07:57:16 pm »
Hello
Who can tell me how to put a slider for the photos in the theme 'Bender' file item.php

I would like a navigation between the photos without fancybox

thank you
« Last Edit: August 02, 2019, 04:33:29 pm by grisbi »

grisbi

  • Jr. Member
  • **
  • Posts: 51
Re: slider for the photos in the theme bender
« Reply #1 on: August 01, 2019, 12:34:21 am »
I found a solution with mahesh's trick:

https://forums.osclass.org/general-help/onclick-to-swap-images/msg90635/#msg90635

but beware there is an error you have  add id = "largephoto" to line 88 for the theme "Bender"

here is the modified code:

Code: [Select]
<a href="<?php echo osc_resource_url (); ?> "id =" largephoto "class =" main-photo "title =" <? php _e ('Image', 'bender');?> <? php echo $ i + 1;?> / <? php echo osc_count_item_resources ();?> ">

grisbi

  • Jr. Member
  • **
  • Posts: 51
Re: slider for the photos in the theme bender
« Reply #2 on: August 01, 2019, 12:35:28 am »
this solution works very well
« Last Edit: August 01, 2019, 05:55:35 pm by grisbi »