WordPress.org

Forums

One Page
Recent Blogs (2 posts)

  1. Blank
    Member
    Posted 1 year ago #

    I want to remove the recent blogs on my homepage, how will I do that?

  2. pankaj064
    Blocked
    Posted 1 year ago #

    Hello 6sigmea
    To remove the recent blog section from your home page you need to remove some codes from front-page.php. It is better to make a child theme and perform all the editing in that. You can learn how to make a child theme here.
    Now copy and paste the front-page.php file to your child theme root folder. Remove the lines from 389 to 492. These can be found below the comments
    <!-- *************Recent Blogs************* -->
    Here you go. After you remove the recent blogs section divs you also need to hide the recent blog menu on home page. To remove the recent blog menu just go to line no. 121 and find and remove the following code

    <?php if (onepage_get_option('onepage_recent_blog_heading') != '') { ?>
    <li class="page_item"><a class='scrollSmint' id="blogs" href="#"><?php echo onepage_get_option('onepage_recent_blog_heading'); ?>
    <?php } else { ?><li class="page_item"><a class='scrollSmint' id="blogs" href="#"><?php _e('Recent Blogs','onepage'); ?></a></li><?php } ?></a></li>

    Either you can also change the href if you want to send users to your blog page.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic