Tagged: custom post types, masonry
-
AuthorPosts
-
February 19, 2016 at 1:58 pm #586049
Hi,
I received some designs and I want to use Enfold to make it into a website. A few questions:
What feature in Enfold do I need to use to get this result? I need to create a gallery with categories and subcategories and upon clicking it needs to be a lightbox opening like this:
Hope you can help!
Regards,
DanielFebruary 19, 2016 at 3:20 pm #586105Hi strila!
you could try masonry gallery for it.
Best regards,
AndyFebruary 20, 2016 at 4:55 pm #586480Hi Andy!
Thanks! Can I use the masonry gallery so that clicking an image wil show a lightbox (instead of taking me to another page)?
Regards,
DanielFebruary 20, 2016 at 5:10 pm #586484Hey!
Yes, that’s possible, one thing to note is that if you’re going to need sorting functionality i’d suggest using a Masonry instead (not Masonry Gallery) and make use of a custom post type for the images.
Regards,
JosueFebruary 20, 2016 at 5:13 pm #586487Hi Josue,
OK sure! What’s the difference between Masonry and Masonry Gallery? Is that a different one that’s not mentioned in the menu at http://kriesi.at/themes/enfold/portfolio/? And how do I make use of a custom post type for the images?
Regards,
DanielFebruary 20, 2016 at 5:49 pm #586494Hi!
They’re both Masonries, the difference is what kind of content they can fetch, Gallery uses images (Media attachments) while the Masonry usees Posts/Pages/Portfolio Items or a Custom Post Type (the featured image is used as the image), for that reason only the Masonry has sorting capabilities (attachments are not categorizable).
Best regards,
JosueFebruary 23, 2016 at 5:42 pm #587844Hi Josue,
Thanks for your explanation. If I understand correctly, I should create a custom post type instead of using posts/pages/portfolio items. Is that correct?
Regards,
DanielFebruary 23, 2016 at 5:52 pm #587850Correct, you can use the following plugin for that:
https://wordpress.org/plugins/types/Regards,
JosueMarch 9, 2016 at 10:37 pm #595866Hi Josue,
Thanks for re-opening! So I’ve created the page at http://strila.nl/enfold/index.php/masonry-page/, set up a custom post type using the plugin, and put in some dummy content. How would I now go on to:
– make this page without the sidebar
– get the subcategories shown under the main categories upon clicking a category
– have the image pop up in a lightbox window instead of linking to the page of the custom post type (I see there’s a lightbox on the custom post type page)Thank you very much,
DanielMarch 10, 2016 at 9:58 am #596179Hey!
1. Change that in Page Layout at the right.
2. If you referring to the sorting filters i’m afraid that won’t be possible without modifying the theme extensively.
3. Open /enfold/config-templatebuilder/avia-shortcodes/helper-masonry.php and look for line:$this->loop[$key]['url'] = get_permalink($id);
Replace it by this:
$this->loop[$key]['url'] = wp_get_attachment_image_src($id, apply_filters('avf_avia_builder_masonry_lightbox_img_size','large'));
Best regards,
JosueMarch 14, 2016 at 10:45 pm #598019Hi Josue,
Thanks for that! I’ll implement the 1st and 3rd point. Regarding point 2, how extensively would this modification be? I’m willing to ask and pay for some customisation but then I need to make sure that the developer knows Enfold well enough to do this. I’ve tried to ask on codeable but couldn’t find the right person.
March 15, 2016 at 1:32 am #598079– First you’d need to modify the markup, this is done in 136-147 of /config-templatebuilder/avia-shortcodes/helper-masonry.php, there’s a loop that that goes through all the terms and print them flat, that would need to be re-factored so it prints them in a hierarchical order.
– Once you have these terms output in a hierarchical way you’d need to hide the children by default (CSS) and then create a custom script (JS) that makes the children of each term appears when clicked (and at the same time maintain its default filter functionalities).
I’m not sure if it would be worth the effort in the end, do you have any examples of what you’re trying to achieve? as far as i know filters options are normally presented flat.
March 15, 2016 at 2:17 am #598094Hi strilla, you may want to refer to this as well: https://kriesi.at/support/topic/procedure-for-adding-custom-post-type-and-enabling-it-for-use/
Josue helped me on this.
March 15, 2016 at 4:43 am #598134Hey!
Thanks you for helping strilla @Tameez :)
Regards,
Vinay KashyapMarch 16, 2016 at 9:48 am #598851Thanks for helping guys!
@Josue: why do I want this you ask? The client is an artist and makes statues, drawings, coins, paintings etc. The drawings for examples can be pencil, pen, marker, paint, etc. So we have categories and subcategories.Maybe I should try and contact the Types plugin devs to use their Views toolset, you think that would be an option?
March 22, 2016 at 1:44 am #601628Hey!
Have you checked this plugin?
http://codecanyon.net/item/essential-grid-wordpress-plugin/7563340Best regards,
JosueMarch 22, 2016 at 8:45 am #601748Hi Josue,
Thanks so much for helping, I’ve just checked that out and it looks promising. I’ll contact them to see if it fits my needs, thanks!
Cheers,
DanielMarch 22, 2016 at 9:47 am #601768Glad to help, hope you manage to sort this out!
Regards,
JosueMarch 22, 2016 at 9:56 am #601772Me too :) Shall I keep this post up-to-date?
March 22, 2016 at 10:23 am #601793Feel free to do it, i’ll leave the thread open (if you can, edit your last post instead of adding a new message, to avoid creating multiple pages).
April 30, 2016 at 3:11 pm #625040strilla : I see that the plugin Types was recommended. Be aware that although this is in the WordPress site plugin directory, it is actually contravening their terms because it is trial-ware, meaning that you get 30 days free before having to subscribe annually. It doesn’t tell you that in the description.
The best looking free ones are https://wordpress.org/plugins/pods/ and https://wordpress.org/plugins/advanced-custom-fields/ -
AuthorPosts
- The topic ‘Gallery with lightbox’ is closed to new replies.