Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c03/h06/mnt/47169/domains/themehybrid.com/html/community/bb-settings.php on line 186

Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c03/h06/mnt/47169/domains/themehybrid.com/html/community/bb-includes/backpress/functions.wp-object-cache.php on line 108

Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c03/h06/mnt/47169/domains/themehybrid.com/html/community/bb-includes/backpress/pomo/mo.php on line 171

Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c03/h06/mnt/47169/domains/themehybrid.com/html/community/bb-includes/functions.bb-l10n.php on line 484

Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c03/h06/mnt/47169/domains/themehybrid.com/html/community/bb-includes/backpress/class.wp-taxonomy.php on line 581
Slider Idea: slider in a single post as an image gallery « Community

Welcome, guest!

Feel free to read the blog, browse for themes, or join the club.

The community forums are currently being phased out. At the end of February or early March 2012, you will no longer be able to post here. This is because the entire site is being restructured. Please use the main forums for discussions.

Slider Idea: slider in a single post as an image gallery

  1. Hi!

    I want to use a small gallery in a post with a few images. I think that it would be great to use the same slider of the front page (Hybrid News theme) in a single post, but only showing the photos. In this case it would work as an image gallery.

    Is there any chance of doing this? What do you think?

  2. If that would be possible I would love it too!

  3. Check out what we've done on this site: http://culture360.org/event/atlas-festival-cambodian-french-circus-in-belgium/

    Is that what you're talking about?

    In this case, we used the GalleryView - jQuery Content Gallery Plugin by Jack Anderson

    We had to override the default WP [gallery] short code and replace it with ours but I can supply the shortcode function if anyone is interested.

  4. Robert YES please share!

    NICE site!

  5. @companyv

    OK, here goes. The code is on Pastebin: http://pastebin.com/nF5pqtzR

    Some notes:

    You need to download the galleryview (http://spaceforaname.com/galleryview) and fancybox (http://fancybox.net/) jQuery plugins.
    You will see the code to include those scripts in child_add_styles_and_scripts() so modify it accordingly.
    You should be able to paste all the code into your functions.php.
    The supplied code DOES NOT include any CSS since it's all in one file on our site but you should make sure the CSS for the fancybox and gallery view is included. You can use the child_add_styles_and_scripts() function to add the CSS.

    To insert a gallery into a page or post, just upload some images to a post/page and use the Insert Gallery button. You don't need to specify any parameters except the ordering. The others are ignored for obvious reasons :).

    This code may not work straight off the bat as I haven't tested it like this. I have pretty much 'ripped' it out of the site with minor modifications. However, you should be able to make it work - just make sure the JS is getting loaded where it should and that you have the CSS loaded as well.

    Good luck.

Reply

You must log in to post.

Topic Info

Topic Tags: