Support » Theme: StrapVert » featured posts for pages

  • Resolved johnokang

    (@johnokang)


    I’ve created pages that use the “Featured” template. I was wondering how I can make certain posts featured on certain pages with the featured template.

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Theme Author Brian Harris

    (@zgani)

    Hello johnokang,

    Currently the Featured Template works exactly as the selection for the Default Template would work and is used for creating a static front page – basically a place holder for a feature we are looking in to introduce very soon.

    If understand correctly you wish to have featured posts on pages other than the home page? Currently they only appear on the front page but your question has raised some food for thought.

    If the above assumption is correct then please do give us a little time to see what we can do to facilitate the option 🙂

    Hi Zulfikar,

    thank you for the prompt response. Yes I was hoping that I can have the featured template appear on other pages but displaying posts based on category instead of featured.

    I understand that as of now featured posts are based on if they are sticky so it may be a bit more complicated.

    Another question I was wondering is if there can be more than one row for secondary featured posts.

    Theme Author Brian Harris

    (@zgani)

    You are welcome 🙂

    Will look in to extending the feature to other pages and categories – may take a little while so do bare with us.

    As for more than one row, yes that is possible with the current configuration. If you navigate to the Customizer under the section marked as “Front Page Content Options” you’ll see a text box marked “Number of Featured posts i.e 9, 13, 17”. The default is currently set to 5 – that’s 1 main and 4 secondary featured posts.

    Set to 9 you’ll get 1 main and 8 secondary with the secondary split in two rows of 4. You can have an infinity number of featured posts but that would be a lot of Sticky posts to have.

    Hope that helps for now and hopefully we can get back to you soon on the other requests.

    Regards,
    Zulf

    Theme Author Brian Harris

    (@zgani)

    OK, I’ve just had a quick toy around with the idea and can offer you a workaround for pages other than the front page – to work this you’ll need to create a child theme and then do the following.

    1) Copy the template-featured.php in to your child theme and rename it to say template-featured2.php (also change the template name in the document head too).
    2) Just below the get_header(); part add the following code and save.

    <div class="container clearfix">
        <div class="row" role="main">
    	    <?php get_template_part( 'featured-content' ); ?>
    	</div>
        <hr />
    </div>

    Now when you go to create a page you should have the extra template selectable in the template dropdown section. At this moment only the sticky posts will show up but its a starting point.

    That leaves me to toy around with a custom loop to use categories instead, so its off to work I go 🙂

    Theme Author Brian Harris

    (@zgani)

    The category selection option will not be available for sometime yet as the coding is an involved process and I’m not able to allocate the required time at the moment.

    Sorry about that.

    Zulf.

    Hi Zulfikar thank you for all your assistance! The features posts have helped tremendously and I really appreciate you investigating the category pages.

    For now I have built my site to not have the feature but I hope that it works in the future!

    -John

    Hi Zulfikar,

    I had another question. Can you help me figure out how to center my single page content? I can’t seem to get the header and comments to move. I appreciate any help!

    -John

    Theme Author Brian Harris

    (@zgani)

    Hello John,

    In order to separate topics and aid in solutions being discovered by others could I ask you to raise this as a new topic please?

    Will take a look in to the request and see what I can come up with – will update the new thread as soon as possible.

    Thanks,
    Zulf

    Hello,

    could you tell me where I can finde the section you described above.

    As for more than one row, yes that is possible with the current configuration. If you navigate to the Customizer under the section marked as “Front Page Content Options” you’ll see a text box marked “Number of Featured posts i.e 9, 13, 17”. The default is currently set to 5 – that’s 1 main and 4 secondary featured posts.

    Best wishes, Jan

    Theme Author Brian Harris

    (@zgani)

    Hello Jan,

    Please see my response to your comment on the site 🙂

    Zulf

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘featured posts for pages’ is closed to new replies.