Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • 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.

    in reply to: link portfolio Masonry image in overview to lightbox image #517943

    But 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.

    in reply to: link portfolio Masonry image in overview to lightbox image #517076

    Actually 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.

    in reply to: Masonry Gallery with Lightbox – Possible? #516932

    I’ve actually solved it! Thanks to this topic!

    https://kriesi.at/support/topic/lightroom-in-portfolio-masonry-or-sortable-masonry-gallery/#post-361857

    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?

    in reply to: Masonry Gallery with Lightbox – Possible? #516914

    http://www.dutchpixel.nl

    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!

    in reply to: Masonry Gallery with Lightbox – Possible? #516912

    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 );
Viewing 6 posts - 1 through 6 (of 6 total)