WordPress.org

Ready to get started?Download WordPress

Forums

Leaf
[resolved] Leaf theme blog post won't display posts (9 posts)

  1. shaunbaldwin
    Member
    Posted 1 year ago #

    Hi guys,
    We have created a child theme of the leaf theme.

    The aim is to have the blog as the homepage.
    We have added two test blog posts and they only show in the slidebar.
    In 'leaf options' we have set the 'number of more articles' to 8. Still the posts don't show.

    I've read through a number of post in forums regarding this but still haven't found the answer.

    The demo of leaf seems even more confusing. The homepage appears to be a blog as well as another page which is the blog.

    Basically all we wish to create is a homepage that is also the blog, slider underneath the title, then the most recent 7 or 8 blog posts underneath.

    Any hints or tips would be appreciated.
    Thanks in advance,
    Shaun

  2. tizz
    Member
    Posted 1 year ago #

    We have created a child theme of the leaf theme.

    Do you mean that you created a child theme by your own or that you have installed the one provided by the author?
    This is important to exclude errors in your current child theme.

  3. shaunbaldwin
    Member
    Posted 1 year ago #

    Hi Tizz,
    Many thanks for your reply.
    Apologies for not getting back earlier.

    What I have done is create a child theme in cpanel using this code:

    /*

    Theme Name: Leaf Child
    Theme URI: public_html/simplyvillasibiza.co.uk/wp/wp-content/themes/leaf
    Description: Child theme based on leaf
    Author: Shaun Baldwin
    Version: 0.0.1
    Template: leaf

    */

    @import url('../leaf/style.css');

    .main-navigation li a {
    color: #000000;

    }

    That is all I have done so far. The blogs still only display in the slider and not under the slider.

    Any pointers would much appreciated.
    Thanks in advance,
    Shaun

  4. tizz
    Member
    Posted 1 year ago #

    The blogs still only display in the slider and not under the slider

    1) I'm not sure I got it right because you haven't reported your URL, but if you mean that you didn't see your published post out of the slider, that's because you have published less than 5 posts. As soon as you publish more they will appear in categories under slider, the ones that you have checked in the options.

    the most recent 7 or 8 blog posts underneath.

    The most recent posts go in the slider, from 6th onward go underneath.

    2) If the only change you need is that CSS, you can write in the Custom CSS area, you don't need a child theme.
    If you want customize template file, use the ready child theme

  5. shaunbaldwin
    Member
    Posted 1 year ago #

    I just created lots of dummy posts and they have begun to appear! :)

    With regards to the CSS, I'm just at the beginning of customising my theme. But thanks for the tip anyway.

    Is it possible to edit the coding so that all the posts appear on the homepage, even the most recent ones and random posts appear in the slider?

    An example is in this theme by wpshower:
    http://wpshower.com/themes/sight/

    Thanks again for your help!

  6. tizz
    Member
    Posted 1 year ago #

    Is it possible to edit the coding so that all the posts appear on the homepage, even the most recent ones and random posts appear in the slider?

    Yes, it's possible via child theme with the help of a coder, that I'm not, sorry.

    Edit: or maybe, without coding, using Leaf with blog layout, and then installing a slider plugin with options, there are many out there.
    You can try.

  7. shaunbaldwin
    Member
    Posted 1 year ago #

    That's great.
    Once again thanks for your time.

  8. tizz
    Member
    Posted 1 year ago #

    You're welcome.
    Pls mark as resolved ;)

  9. shaunbaldwin
    Member
    Posted 1 year ago #

    Resolved.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic