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 11 posts - 1 through 11 (of 11 total)

Frontpage Posts

Home Forums Free Theme Support Asteria Lite Frontpage Posts

  • #74801

    Mr. Green

    I have unselected the frontage posts from the frontpage elements position under “Front Page”. I do not want the frontpage posts to appear on the home page, however, they continue to do so. How do I prevent this front happening? Thanks in advance!

    #74837

    Towfiq I.

    administrator

    This is a bug and will be fixed in the new version of the theme. Here is how you can remove the frontpage posts.

    Open up index.php and replace this:

    	<?php if ( asteria_is_mobile() && (!empty($asteria['hide_mob_frontposts'])) ) { ?>
        <?php }else{ ?>
    	<?php get_template_part('layout'.$asteria['front_layout_id'].''); ?>
        <?php } ?>

    with this:

    <?php $homeposts = $asteria['home_sort_id']; if(!empty($homeposts['posts'])){ ?>
            <!--Latest Posts-->
                <?php if ( asteria_is_mobile() && (!empty($asteria['hide_mob_frontposts'])) ) { ?>
                <?php }else{ ?>
                <?php get_template_part('layout'.$asteria['front_layout_id'].''); ?>
                <?php } ?>
            <!--Latest Posts END-->
            <?php } ?>
    #74950

    Mr. Green

    This worked perfectly! Thanks for your help! You produce great themes!

    #80323

    Oren

    Thanks this answer was very useful. How would I go about adding a div underneath the blocks in place of the posts? Something that I can post my own HTML in (like a few photos and text)?

    Great theme. Thank you for putting it out for free.

    #80466

    Towfiq I.

    administrator

    you can add the welcome text area and then drag the welcome text under the blocks from the Asteria Theme Options> Frontpage.

    #82254

    Syvella

    Greetings,

    This did not work for me. I am wondering why? I still have the posts at the bottom of my child theme. I imported the index.php from the parent, and i also have it as a child. Here is the copy and paste of what I have…

    <!–Slider Area–>
    <div id=”slidera”>
    <?php if( get_option( ‘asteria’ )){ ?>
    <?php $homeposts = $asteria[‘home_sort_id’]; if(!empty($homeposts[‘posts’])){ ?>
    <!–Latest Posts–>
    <?php if ( asteria_is_mobile() && (!empty($asteria[‘hide_mob_frontposts’])) ) { ?>
    <?php }else{ ?>
    <?php get_template_part(‘layout’.$asteria[‘front_layout_id’].”); ?>
    <?php } ?>
    <!–Latest Posts END–>
    <?php } ?>
    <?php }else{ ?>
    <?php get_template_part(‘dummy/dummy’,’nivo’); ?>
    <?php } ?>
    </div>

    However, the posts are still there and they are HUGE too..very unappealing. If you would like to see it, its here: http://www.smithspremiumsolutions.net/newsite/

    I don’t know if this is an issue on the programming in or mine. I am new to this, and this is my first website I created through WordPress. I fell in love with it right away, but I cannot get certain things that i figured would automatically format to actually format. One of the issues is I wanted my posts to show up under their respective page headings, and not all of them. (for instance, a post concerning “community” should only be displayed in the community page, News under news and etc…) As of now, everything I post shows up in all three of them…Am I doing something wrong?

    #82256

    Syvella

    I’m Sorry, the code didnt copy and paste right…Lets try that again..

    <!–Slider Area–>
    <div id=”slidera”>
    <?php if( get_option( ‘asteria’ )){ ?>
    <?php $homeposts = $asteria[‘home_sort_id’]; if(!empty($homeposts[‘posts’])){ ?>
    <!–Latest Posts–>
    <?php if ( asteria_is_mobile() && (!empty($asteria[‘hide_mob_frontposts’])) ) { ?>
    <?php }else{ ?>
    <?php get_template_part(‘layout’.$asteria[‘front_layout_id’].”); ?>
    <?php } ?>
    <!–Latest Posts END–>
    <?php } ?>
    <?php }else{ ?>
    <?php get_template_part(‘dummy/dummy’,’nivo’); ?>
    <?php } ?>
    </div>

    #82258

    Syvella

    For some reason when I copied and pasted the code that I have in my editor, it showed up on here left aligned without the indentions, They are there and I wish I could show them to you accurately.

    #82387

    Towfiq I.

    administrator

    you are doing it wrong. Since you are new its easy to make this mistake. When you click the “News” page you only want to get the news post and when you click on events menu it should display the posts with category event, right? The right way to do this, is to Go to Appearance> menus and from the “Category” box, add the respective categories to your menu. and then when you click the menu items they should display the posts related to their categories.

    Hope this helps.

    #82469

    Syvella

    Towfiq…You make wonderful templates, But I am still having an issue with the posts showing up on the home page. Would you please help me remove them? http://www.smithspremiumsolutions.net/newsite/

    #82483

    Syvella

    Resolved..

You must be logged in to reply to this topic.