Forum Replies Created
-
AuthorPosts
-
October 13, 2015 at 11:16 am in reply to: link portfolio Masonry image in overview to lightbox image #517965
Thanks to photoshop I tried to create what I want to accomplish
The image gallery with the possibility to sort by category. The categories are accomplished by a taxonomy.
When you click on a image it shows in a lightbox. And not like the masonry portfolio where it links to a popup. Just want it to show in a lightbox like beneath.
October 13, 2015 at 10:41 am in reply to: link portfolio Masonry image in overview to lightbox image #517943But it’s not possible if the taxonomy is an image right? :) You can only use them on posts etc. not images only.
I just want a image gallery with the extra possibility to sort them by categories. Tried to accomplish it with a masonry with a taxonomy. I added an extra plugin so I can give my media (images) a categorie.
October 11, 2015 at 11:04 pm in reply to: link portfolio Masonry image in overview to lightbox image #517076Actually it won’t.
The thing I just love to do, but guess it’s not possible is to have a
masonry gallery with a taxonomy which is called categories. Every images had a category attached to it.So if I create a masonry gallery I can choose from the list the Image gallery categories.
That way it would be way easier to upload images. The way I did it now is I made a portfolio masonry.
And made the image link to a lightbox. But this way I have to create lots and lots of portfolio items. While uploading images is way easier/faster.I’ve actually solved it! Thanks to this topic!
Open up /enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php and change line 704 from this.
$this->loop[$key]['url'] = get_permalink($id);
To this.
$this->loop[$key]['url'] = wp_get_attachment_image_src(get_post_thumbnail_id($id), apply_filters('avf_avia_builder_masonry_lightbox_img_size','large')); $this->loop[$key]['url'] = reset($this->loop[$key]['url']);
That will have the masonry element images open in lightbox instead of linking to the post.
But I’m actually looking for a more future proof update. Any idea’s?
Simply just want to show images with categories. And when people click on the categories the images are sorting. When they click on a image it opens in a lightbox :)
Thanks in advance!
- This reply was modified 9 years, 1 month ago by DutchPixelDesign.
Would love to do this, but can’t get it to work.
What I did. In my child theme I created a JS folder and then.
line 895 of js/avia.js:
‘groups: [‘.avia-slideshow’, ‘.avia-gallery’, ‘.isotope’, ‘.post-entry’, ‘.sidebar’, ‘#main’, ‘.main_menu’],’
Changed to:
groups: ['.avia-slideshow', '.avia-gallery', '.isotope', '.post-entry', '.sidebar', '.main_menu'],
Place this code in functions.php to load child js/avia.js:
// Replace avia.js function change_aviajs() { wp_dequeue_script( 'avia-default' ); wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true ); } add_action( 'wp_enqueue_scripts', 'change_aviajs', 100 );
-
AuthorPosts