Support » Theme: Oxygen » [Theme: Oxygen] Front Page Template override Archives

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m wondering this too!

    I just added a text box widget and left it blank and they disappeared.



    I’m not sure chrisneylan’s reply really answers the question. Here is the most forward-compatible way to do this:

    1. Make an Oxygen child theme by creating a new theme folder (your-theme) and creating a style.css file in that folder with the following content:

    Theme Name: Oxygen child theme
    Author: Your Name
    Template: oxygen
    @import url("../oxygen/style.css");

    2. Copy the file page-template-front.php from the Oxygen theme folder into your new child theme.

    3. Modify the page-template-front.php file in your child theme to delete the two custom loops that are responsible for pulling out “Recent articles” and “More articles”.

    The brute way to do this is to remove all of the code that appears between the following two lines:

    <?php do_atomic( 'open_content' ); // oxygen_open_content ?>
    [remove everything in between here, lines 24-131]
    <?php do_atomic( 'close_content' ); // oxygen_close_content ?>

    CSS-only alternative

    Alternatively, if you don’t care that posts are loaded and HTML is produced, you can simply hide it using CSS. Follow step 1 above and then add the following line to the child theme’s style.css:

    .page-template-front #content { display:none }

    I don’t recommend this approach as it just hides the posts instead of not loading them in the first place, but it does work.

    I tried this and it worked thanks very much. Can I also remove the date of the posts showing?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Theme: Oxygen] Front Page Template override Archives’ is closed to new replies.