Support › Forums › Support (Legacy) › change masonry
This topic is: Resolved
Tagged: Atlanta
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
08/05/2016 at 12:14 #1457
hello,
a while ago i received help changing my masonry layout in Atlanta to have 4 columns.
is there a way (i.e. content php file) that can enable me to have a layout for a masonry gallery similar to the theme “Superstar”?
thanks for your help08/05/2016 at 12:55 #1458Hello Tzafi,
In Superstar the page is set as a full width galleries page.
Are you referring to the spaces you have between the images on your site?
What code exactly did you insert to set the 4 columns?
15/05/2016 at 11:57 #1541i inserted the following php file into the child theme:
<?php /** * Content: Gallery Masonry */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly global $_pojo_parent_id; $categories = ''; $categories_terms = get_the_terms( null, 'pojo_gallery_cat' ); if ( ! empty( $categories_terms ) && ! is_wp_error( $categories_terms ) ) $categories = wp_list_pluck( $categories_terms, 'name' ); ?> <div id="post-<?php the_ID(); ?>" <?php post_class( apply_filters( 'pojo_post_classes', array( 'grid-item gallery-item masonry-item col-md-3 col-sm-6 col-xs-6' ), get_post_type() ) ); ?>> <?php if ( $image_url = Pojo_Thumbnails::get_post_thumbnail_url( array( 'width' => '420', 'placeholder' => true ) ) ) : ?> <figure class="image-link"> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"> <img src="<?php echo $image_url; ?>" alt="<?php echo esc_attr( get_the_title() ); ?>" class="media-object" /> <div class="overlay-image"></div> <div class="caption overlay-title"> <h4 class="grid-heading"> <?php the_title(); ?> <?php if ( ! empty( $categories ) ) : ?> <small><?php echo implode( ', ', $categories ); ?></small> <?php endif; ?> </h4> </div> </a> </figure> <?php endif; ?> </div>16/05/2016 at 11:27 #1556This reply has been marked as private.17/05/2016 at 8:14 #1557Thank you very much for your response
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Support (Legacy)’ is closed to new topics and replies.
