fency images without carousel

resolved (9 posts) (2 voices)

  1. jacekw
    Member

    Hello Webtreats !

    Is it possible to turn off carousel of thumbnails in prettyPhoto in fency_images shortcode?

    Regards
    Jacek

    Posted 3 years ago #
  2. Elliott
    Support

    Hello jacekw,

    To do this you would just need to place one image URL per fancy image like so,

    [fancy_images]http://www.yoursite.com/images/1.jpg[/fancy_images]
    [fancy_images]http://www.yoursite.com/images/2.jpg[/fancy_images]
    [fancy_images]http://www.yoursite.com/images/3.jpg[/fancy_images]

    And each of them will open separately. If you want to force this behaviour then open up your shortcode.php file and on line 53 you should see this,

    if ($links[$counter] != '') { $img = $links[$counter]; } else { $rel = " rel = 'lightbox[portfolio]'"; }

    Change it like this,

    if ($links[$counter] != '') { $img = $links[$counter]; } else { $rel = " rel = 'lightbox'"; }

    Let us know if this helps jacekw.

    Posted 3 years ago #
  3. jacekw
    Member

    Hello Elliott

    It works well but only for one photo :(. Every jpg opens in separate jQuery window without arrows and navi buttons.
    I am looking for solution to open all one-group jpegs in the same jQuery window without carousel.

    Guys would be great if you find solution for this.

    Regards
    Jacek

    Posted 3 years ago #
  4. Elliott
    Support

    So to make sure I understand correctly, you want to select which photos open up in which gallery correct?

    Find lines 12 - 21 and add a gallery parameter like so,

    extract(shortcode_atts(array(
    	'url' => '',
    	'target' => '',
    	'title' => '',
    	'alt' => '',
    	'height' => '200',
    	'width' => '188',
    	'sidebar' => '',
    	'gallery' => '',  // add this line
    ), $atts));

    And then change line 54 to look like this,

    if ($links[$counter] != '') { $img = $links[$counter]; } else { $rel = " rel = 'lightbox[".$gallery."]'"; }

    You can now select which images to open in which gallery like so,

    [fancy_images gallery = "album1"]
    http://www.yoursite.com/images/1.jpg
    [/fancy_images]
    
    [fancy_images gallery = "album2"]
    http://www.yoursite.com/images/1.jpg
    [/fancy_images]
    Posted 3 years ago #
  5. jacekw
    Member

    Hi Elliott

    I did this before and this not solve my problem becouse if is set group of jpegs by gallery parameter, carousel appeared again. I use code like this:

    [fancy_images sidebar = 'yes' group = 'one'] http://www.mysite.com/71.jpg [/fancy_images]
    [fancy_images sidebar = 'yes' group = 'one'] http://www.mysite.com/72.jpg [/fancy_images]
    [fancy_images sidebar = 'yes' group = 'one'] http://www.mysite.com/73.jpg [/fancy_images]

    If i use shortcode.php with line:

    if ($links[$counter] != '') { $img = $links[$counter]; } else { $rel = " rel = 'lightbox'"; }

    jQuery opens window with one picture without carousel. It's well but i can't display gallery with more jpegs.
    On the other side when i use shortcode.php with line:

    if ($links[$counter] != '') { $img = $links[$counter]; } else { $rel = " rel = 'lightbox[".$gallery."]'";
    jQuery opens window with group of jpegs with carousel in it. I addition when i use only one jpeg with gallery parameter jQuery opens windows with one picture and with carousel in the window.

    Regards
    Jacek

    Posted 3 years ago #
  6. Elliott
    Support

    Go ahead and take a scvreenshot and highlight the areas you are having issues with so we can get a better idea of what needs done.

    Posted 3 years ago #
  7. jacekw
    Member

    Hi Elliott

    I want to remove carousel shown in the attachment. I tried to do this in many ways but no success.

    Regards
    Jacek

    Attachments

    1. domino.JPG (39 KB, 0 downloads) 3 years old
    Posted 3 years ago #
  8. jacekw
    Member

    One picture says more than thousand words..... It was good remark Elliott :).
    I changed overlay_gallery parameter to false in file .../infocus/lib/scripts/custom.js and it works how I expected.

    Great work Elliott. Many thanks

    Posted 3 years ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme