Tagged: x
-
AuthorPosts
-
June 25, 2016 at 2:24 am #1059034
ITPHXParticipantHi,
I have a problem with personalize blog style on masonry. Works only stadard style but they view a huge photo! I try change on masonry with 3 columns but it’s not working. I check index.php and I see that when I switch on masonry in index.php is not changing always is standard style…
Please help me to resolve this problem…
June 25, 2016 at 2:26 am #1059038
ITPHXParticipantThis reply has been marked as private.June 25, 2016 at 2:34 am #1059044
ChristopherModeratorHi there,
You haven’t selected blog page yet. Please select it under Settings -> Reading and provide us with its URL.
Thanks.
June 25, 2016 at 2:55 am #1059051
ITPHXParticipantHi, I have a few custom type post and few type of blogs. Different for accomodation different for travel etc. Problem is when I used “search” and archives view in one column with a huge photos. So, I try to change archives to masonry with 3 columns.
Please check this. Blog in this moment it’s not neccessary for me but masonry with 3 columns in archives I really needs.June 25, 2016 at 2:57 am #1059052
ITPHXParticipantThis reply has been marked as private.June 25, 2016 at 3:07 am #1059056
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> CSS :
.search-results article { width: 33.28%; }Hope that helps.
June 25, 2016 at 3:16 am #1059065
ITPHXParticipantThis reply has been marked as private.June 25, 2016 at 3:46 am #1059073
ChristopherModeratorHi there,
Please remove the CSS and copy _index.php from framework/views/global and put it in the same path inside child theme, replace existing code with following :
<?php // ============================================================================= // VIEWS/GLOBAL/_INDEX.PHP // ----------------------------------------------------------------------------- // Includes the index output. // ============================================================================= $stack = x_get_stack(); if ( is_home() ) : $style = x_get_option( 'x_blog_style' ); $cols = x_get_option( 'x_blog_masonry_columns' ); $condition = is_home() && $style == 'masonry'; elseif ( is_archive() || is_search() ) : $style = x_get_option( 'x_archive_style' ); $cols = x_get_option( 'x_archive_masonry_columns' ); $condition = is_archive() || is_search() && $style == 'masonry'; endif; ?> <?php if ( $condition ) : ?> <?php x_get_view( 'global', '_script', 'isotope-index' ); ?> <div id="x-iso-container" class="x-iso-container x-iso-container-posts cols-<?php echo $cols; ?>"> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <?php if ( $stack != 'ethos' ) : ?> <?php x_get_view( $stack, 'content', get_post_format() ); ?> <?php else : ?> <?php x_ethos_entry_cover( 'main-content' ); ?> <?php endif; ?> <?php endwhile; ?> <?php else : ?> <?php x_get_view( 'global', '_content-none' ); ?> <?php endif; ?> </div> <?php else : ?> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <?php x_get_view( $stack, 'content', get_post_format() ); ?> <?php endwhile; ?> <?php else : ?> <?php x_get_view( 'global', '_content-none' ); ?> <?php endif; ?> <?php endif; ?> <?php pagenavi(); ?>Hope that helps.
June 25, 2016 at 4:15 am #1059090
ITPHXParticipantThis reply has been marked as private.June 25, 2016 at 4:21 am #1059092
ChristopherModeratorHi there,
Please provide us with FTP credentials.
Thanks.
June 25, 2016 at 4:25 am #1059094
ITPHXParticipantThis reply has been marked as private.June 25, 2016 at 4:57 am #1059113
Nabeel AModeratorHi again,
Thank you for providing the credentials, I tested Masonry style with three columns on blog page and archive pages and it’s working just fine.
See: http://www.wakacjedwaplus.pl/category/uncategorized/ and http://www.wakacjedwaplus.pl/teeeest/ Please note that Masonry style will only work on standard blog page and it’s archive pages. This won’t work on custom posts type. You’ll need to create the similar layout of your custom posts type with custom development.Hope this clears!
June 25, 2016 at 5:17 am #1059128
ITPHXParticipantHi, thanks for answer I think that masonry works with all type of post not only with default blog post.
Best Regards
June 25, 2016 at 5:56 am #1059148
Nabeel AModeratorHi again,
Yes it should work on all types of posts if you’ve customized the custom posts type to have the same layout. In your case Masonry style will work on standard blog and it’s category pages. Can you please explain on which posts you want to activate the Masonry blog style because it’s working fine on standard posts?
Thanks!
June 25, 2016 at 6:48 am #1059173
ITPHXParticipantThis reply has been marked as private. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1059034 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
