How can we help?
If you are looking for support for our PokaTheme, this is the place!
Home › Forums › PokaTheme support › Category style
- This topic has 12 replies, 2 voices, and was last updated 3 years, 2 months ago by
spielo.
-
AuthorPosts
-
March 9, 2020 at 7:11 am #8587
spielo
ParticipantHello,
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 3 years, 2 months ago by
spielo.
March 9, 2020 at 11:11 am #8591admin
KeymasterHi,
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]”March 9, 2020 at 1:02 pm #8594spielo
ParticipantHi 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.
March 12, 2020 at 1:57 pm #8645admin
KeymasterHi 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.March 12, 2020 at 4:04 pm #8646spielo
ParticipantHi poka,
hm, if i setup count 3 and give class=”col-lg-4″ it does not work really!
March 13, 2020 at 5:04 pm #8656admin
KeymasterHi spielo,
Can you send me an example from your site with a link?
March 13, 2020 at 5:35 pm #8658spielo
ParticipantMarch 17, 2020 at 6:28 pm #8717admin
KeymasterHi spielo,
in your last reply I can’t see any comments, this is why the topic was marked as resolved.
March 17, 2020 at 7:02 pm #8720spielo
ParticipantHi 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 3 years, 2 months ago by
spielo.
March 20, 2020 at 2:53 pm #8773admin
KeymasterHi!
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. -
This topic was modified 3 years, 2 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.