Theme Support Forum

Support Forum for Free and Premium Themes. Premium Theme Forums are Private! Please log in first to see the Premium forums

If you Like the Asteria Lite Theme and want to Keep it free forever Please Rate it on Wordpress.org (It only takes a few seconds)
Viewing 21 posts - 1 through 21 (of 21 total)

Number of posts shown on front page

Home Forums Free Theme Support Asteria Lite Number of posts shown on front page

  • #91615

    Vicki

    Hi, please can you help me?

    I’ve love the theme thank you!

    I’ve installed a plugin called “post tiles” and set up a blog page called news because I really like the way it displays in a grid and fits in with the theme, but in the Asteria options, front page posts, number of posts I only wanted to display 6 but I have had to set it really high because for some reason it’s affecting the news page and only displaying the same posts number of posts on both pages but the News page can display a lot more. Is there away to only display 6 on the front page and more on the news page please?

    http://www.supercarsaturday.co.uk

    Many thanks,

    Vic.

    #91947

    Towfiq I.

    administrator

    to change the number of frontpage posts to 6, open up functions.php and add this:

    set_query_var( 'posts_per_page', '6' );

    after this line:

    set_query_var( 'paged', ( get_query_var('paged') ? get_query_var('paged') : 1) );

    #92202

    Vicki

    Heya,
    Thanks for your help and coming back to me so quickly, I’ve added the line but nothings changed?
    Thank you,
    Vic.

    #92291

    Towfiq I.

    administrator

    should have worked fine.. are you filtering front page posts by category from Asteria options> Frontpage> Frontpage Posts? if so, you can just change the frontpage posts number from there. if not, the above code should work.

    and when I load your site, all the slider images are loaded vertically at first. looks odd. add this to your Custom CSS to prevent this:

    #zn_nivo{min-height:500px;}

    #93745

    Vic

    Heya,
    Thank you for the code for the front slider.
    Ref the front display posts, I’ve turned the frontpage post category off and it’s defaulted to the 6 posts as put in the code but it has also restricted the number of posts on the news page now too, I can’t work out why they’re both linked even though it’s a different page and if it was just a blog page template rather than the grid page it would show them all?

    Many thanks for your help,

    Vic.

    #93874

    Towfiq I.

    administrator

    open up page-blog.php and replace number 6 with the number of posts you want to display on news page.

    #94892

    Vic

    Thank you that’s worked brilliantly!

    Is there any way to set the main blog page to display like a category page – I really like the way the blocks display? Looks great and it’s brilliant that it’s responsive too.

    Many thanks for your help,

    Vic.

    #94995

    Towfiq I.

    administrator

    Go to Appearance> Editor and select “page-blog.php” and replace all the code with this:

    http://pastebin.com/raw.php?i=YygBBhcS

    #95494

    Vic

    Thank you for the code, I have pasted it in page-blog.php and replaced all the code but the page goes blank?

    Many thanks for all your help,

    Vic.

    #95543

    Towfiq I.

    administrator

    hmm.. try replacing all the code with this:

    http://pastebin.com/raw.php?i=TPtQVHRs

    #96077

    Vic

    Sorry it’s still blank, the menu and the News heading’s there and the social icons at the bottom but the page is blank, unless is there a setting somewhere I need to adjust as well?
    Many thanks,

    Vic.

    #97454

    Towfiq I.

    administrator

    should work fine. can you post your blog page link here?

    #97615

    Vic

    Good morning,

    I’ve added the new code to show you the page that comes up and here’s the link, http://supercarsaturday.co.uk/news/

    Many thanks for your help,

    Vic.

    #97994

    Towfiq I.

    administrator

    ok. try replacing the code with this:

    http://pastebin.com/raw.php?i=qhnbQpWQ

    #98088

    Vic

    That is brilliant, this theme’s awesome – thank you so much for your help!

    One last query and then promise that’s it i’ll leave you alone, the blocks on the front page and blog work perfectly on desktop, sizing is perfect on phone and ipad but when I try and click the blocks on phone and ipad nothing happens and it won’t let me click into the page, is there a fix please?

    Many thanks for all of your help.

    Vic.

    #98392

    Towfiq I.

    administrator

    I am not seeing any blocks on your site:
    http://supercarsaturday.co.uk/

    #98400

    Vic

    Sorry I meant the displayed posts – the feature images you click on to get through to the blog posts,

    Many thanks,

    Vic.

    #98469

    Towfiq I.

    administrator

    Add this to your Custom CSS:

    @media screen and (max-width: 960px){
    .img_hover{display:none;}
    }
    #98501

    Vic

    That has worked brilliantly! Thank you for all your help, I’m really happy with our website now – it’s a great theme and your help and support has been fantastic!

    Many many thanks,

    Vic.

    #98506

    Towfiq I.

    administrator

    Please kindly rate the theme 🙂

    Asteria Lite

    #98791

    Vic

    Happy too 🙂

    Thank you,

    Vic.

You must be logged in to reply to this topic.