• traceyweb

    (@artisanweb)


    How can I specify the number of posts to show on the home page? And how can I add a title such as Latest News above the posts. Current setting is Front page displays your latest posts and No sidebars, full width layout.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi artisanweb,

    To control the number of Posts shown on your Home page, in your dashboard go to Settings > Reading and set your preferred number for Blog pages show at most.

    To add a title such as Latest News above those Posts, the easiest way without making a Child Theme would be to add a bit of custom CSS in Customizr like so:

    .home .span12.article-container:before {
        content: "Latest News";
    }

    You can then style that as you like (e.g. font-size, font-weight, maybe even color). Something like this for instance:

    .home .span12.article-container:before {
        content: "Latest News";
        font-size: 3em;
        font-weight: bold;
    }

    Hope this helps!

    Christi

    Thread Starter traceyweb

    (@artisanweb)

    Thanks. I thought of doing that but won’t it also restrict the number of posts on the blog page itself. I only want 2 or 3 on the home page but that’s not enough for the blog page.

    Michel-G

    (@michel-g)

    Hi ChristiNi

    Thanks so much for your code it work very well, I have put a margin bottom too, to separate the article-container to the text.

    But i want to do that also for the class container marketing, i tryed to write same code, but actually it don’t work

    If i get the good one i will come back to post here,

    Have a good evening

    Michel

    Hi artisanweb,

    You are correct, that setting will limit the number of Posts on all pages where Posts appear. The quickest and easiest way to limit the number of Posts on only the Home page will be:

    1. Set your Home page to display a static page.
    2. Install a plugin like Posts in Page or List category posts.
    3. Put the appropriate plugiin shortcode in your Home page (via the editor, just like if you were entering content). For instance, I installed Posts in Page and added this short code to my Home page: [ic_add_posts showposts=’3′]

    Michel-G if you still need help with some code for adding some text before the .marketing div (that div actually has two separate classes: container, and marketing) please make a new support forum Post.

    Thanks!

    Christi

    Michel-G

    (@michel-g)

    Thanks ChristiNi

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Home page latest posts’ is closed to new replies.