More than 1 static featured posts (no slider)
-
Hello,
I’m having problems setting the first 2 (instead of 1) posts as static images (instead of slider).
I’ve manage to set 2 featured posts at the same size (width: 100%) but I can’t find/I don’t know how to add a space between the second featured posts and the post list.
What I’ve done for now is editing the featured.php lines:
<?php if ( is_home() && !is_paged() && ( hu_get_option('featured-posts-count') =='2') && $featured->have_posts() ): // No slider if 2 or 1 or 0 post is featured ?>
and
<?php elseif ( is_home() && !is_paged() && ( '0' != hu_get_option('featured-posts-count') ) && $featured->have_posts() ): // Show slider if posts are not 2 or 1 or 0?>
What I’ve also tried is something old:
<?php $i = 1; echo '<div class="post-row first-row">'; while ( have_posts() ): the_post(); ?>
adding this to the index-tmpl.php
and adding.post-row.first-row .post { width: 100%; }
to the style.css (child/parent) , assets/front/css/main.css
Another thing that I don’t really get is:
My new “Lorem Ipsum” post show x words (followed by …). The other demo posts show another words from the post (not the first x)
(I also tried to search for the entire sentence, but couldn’t find the full sentence)Thanks, and I said before great theme.
Keep up the good work!
- The topic ‘More than 1 static featured posts (no slider)’ is closed to new replies.