Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1059034
    ITPHX
    Participant

    Hi,

    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…

    #1059038
    ITPHX
    Participant
    This reply has been marked as private.
    #1059044
    Christopher
    Moderator

    Hi there,

    You haven’t selected blog page yet. Please select it under Settings -> Reading and provide us with its URL.

    Thanks.

    #1059051
    ITPHX
    Participant

    Hi, 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.

    #1059052
    ITPHX
    Participant
    This reply has been marked as private.
    #1059056
    Christopher
    Moderator

    Hi there,

    Please add following code in Customize -> Custom -> CSS :

    .search-results article {
        width: 33.28%;
    }

    Hope that helps.

    #1059065
    ITPHX
    Participant
    This reply has been marked as private.
    #1059073
    Christopher
    Moderator

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

    #1059090
    ITPHX
    Participant
    This reply has been marked as private.
    #1059092
    Christopher
    Moderator

    Hi there,

    Please provide us with FTP credentials.

    Thanks.

    #1059094
    ITPHX
    Participant
    This reply has been marked as private.
    #1059113
    Nabeel A
    Moderator

    Hi 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!

    #1059128
    ITPHX
    Participant

    Hi, thanks for answer I think that masonry works with all type of post not only with default blog post.

    Best Regards

    #1059148
    Nabeel A
    Moderator

    Hi 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!

    #1059173
    ITPHX
    Participant
    This reply has been marked as private.
  • <script> jQuery(function($){ $("#no-reply-1059034 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>