How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums PokaTheme support Category style

Viewing 10 posts - 1 through 10 (of 11 total)
  • Author
    Posts
  • #8587
    spielo
    Participant

    Hello,
    we like to show 3 content boxes in one line, at the moment is only possible to setup one or two, is there a fast way to setup count 3?

    • This topic was modified 4 years, 1 month ago by spielo.
    #8591
    admin
    Keymaster

    Hi,

    As you can see in our demo there is a section with 3 affiliate boxes in a row : https://demos.pokatheme.com/pokatheme/
    Please check our documentation for “[three-cols-first]”

    PokaTheme Documentation

    #8594
    spielo
    Participant

    Hi poka,

    sorry, i mean in the main categorys, there is only the option for style 1 or sytle 2! sytle one is with two boxes so i need three boxes.

    #8645
    admin
    Keymaster

    Hi spielo,

    Now I understood what you want, I’m sorry but this is not supported from the theme at the moment.
    You can copy/paste the template in your child theme and make the appropriate changes in order to show 3 columns instead.

    #8646
    spielo
    Participant

    Hi poka,

    hm, if i setup count 3 and give class=”col-lg-4″ it does not work really!

    #8656
    admin
    Keymaster

    Hi spielo,

    Can you send me an example from your site with a link?

    #8658
    spielo
    Participant

    ….

    • This reply was modified 4 years, 1 month ago by spielo.
    • This reply was modified 4 years, 1 month ago by spielo.
    #8717
    admin
    Keymaster

    Hi spielo,

    in your last reply I can’t see any comments, this is why the topic was marked as resolved.

    #8720
    spielo
    Participant

    Hi poka, i post via private replay look like something rong, here again…
    it is not possible to insert screens!

    if i change the counts and class, look like this

    `<?php
    // =============================================================================
    // Main loop
    // =============================================================================
    ?>
    <?php $counter = 0; if (have_posts()) : while (have_posts()) : the_post(); ?>

    <?php
    if ($wp_query->current_post == 3 ) {
    echo ‘<div class=”row”>’;
    }
    ?>

    <div class=”col-lg-4 col-md-6 col-sm-6″>
    <div class=”news-item”>
    <div class=”new-text-group1 equalheight”>
    <?php $category = get_the_category(); ?>
    <div class=”news-info clearfix”>
    <?php if($category){ echo $category[0]->cat_name; } ?>
    <span class=”pull-right”></span>
    </div>
    <h2>“><?php the_title(); ?></h2>

    ” class=”read-more”>
    <?php /* poka_social_social(); */ ?>
    <?php
    $embeds = poka_get_embeds($post->post_content);

    if ( has_post_format( ‘video’ ) && isset($embeds[0]) ) {
    echo ‘<div class=”video-wrapper”>’;
    echo $embeds[0];
    echo ‘</div>’;
    } else {
    if ( has_post_thumbnail() ) {
    echo ‘<div class=”thumb-wrapper”>’;
    the_post_thumbnail(‘post-sm’);
    echo ‘</div>’;
    }
    }
    ?>

    </div>
    <!– /.news-text –>

    </div>
    <!– /.news-item –>
    </div>

    <?php
    if ($counter % 3 != 0 || ($wp_query->current_post +1) == ($wp_query->post_count)) {
    echo ‘</div>’;
    }
    $counter++; endwhile; endif; ?>

    <div class=”pagination”>
    <?php
    global $wp_query;

    $big = 999999999; // need an unlikely integer

    echo paginate_links( array(
    ‘base’ => str_replace( $big, ‘%#%’, esc_url( get_pagenum_link( $big ) ) ),
    ‘format’ => ‘?paged=%#%’,
    ‘current’ => max( 1, get_query_var(‘paged’) ),
    ‘total’ => $wp_query->max_num_pages,
    ‘prev_text’ => __(‘<i class=”fa fa-chevron-left” aria-hidden=”true”></i>’),
    ‘next_text’ => __(‘<i class=”fa fa-chevron-right” aria-hidden=”true”></i>’),
    ) );
    ?>
    </div>
    <!– /.pagination –>

    it does not work… here the url, we use it https://www.playtime-forum.info/spielautomaten/

    THX, if you need more, let me know and i can give you temp access!

    • This reply was modified 4 years, 1 month ago by spielo.
    #8773
    admin
    Keymaster

    Hi!

    You can also remove the :

    ` if ($counter % 2 == 0) {
    echo ‘

    ‘;
    }`

    and

    ` if ($counter % 2 != 0 || ($wp_query->current_post +1) == ($wp_query->post_count)) {
    echo ‘

    ‘;
    }`

    and replace them with just row div outside the loop.
    It will work just fine.

Viewing 10 posts - 1 through 10 (of 11 total)
  • You must be logged in to reply to this topic.