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 4 years, 5 months ago by spielo.
-
AuthorPosts
-
March 9, 2020 at 7:11 am #8587spieloParticipant
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, 6 months ago by spielo.
March 9, 2020 at 11:11 am #8591adminKeymasterHi,
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 #8594spieloParticipantHi 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 #8645adminKeymasterHi 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 #8646spieloParticipantHi 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 #8656adminKeymasterHi spielo,
Can you send me an example from your site with a link?
March 13, 2020 at 5:35 pm #8658spieloParticipantMarch 17, 2020 at 6:28 pm #8717adminKeymasterHi 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 #8720spieloParticipantHi 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, 5 months ago by spielo.
March 20, 2020 at 2:53 pm #8773adminKeymasterHi!
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. -
AuthorPosts
- You must be logged in to reply to this topic.