how to setup content on a static frontpage with css and xhtml

I’m currently working on a website that has a static frontpage and couple of pages that is going to contain portfolio and things alike on the other pages.

The thing I want to do is to hardcode content on the frontpage in css and xhtml.

Read More

Is this possible and where do I do this?

I thought it should be done in index.php

in between:

"<?php get_header(); ?>" and "<?php get_footer(); ?>"

calling the content with if and else statement on: is_front_page()

Related posts

Leave a Reply

2 comments

  1. Nope, you got it wrong. index.php does usually handle presentation of site’s root, but it’s also core fallback template for everything else. So you are potentially breake things deeper by trying to edit it like that.

    Your options are:

    1. create special front-page.php template for it;
    2. create static page with its own template and assign it to be site’s front page.

    I suppose either of these might be done already if you say site has static frontpage.

    See Template Hierarchy > Front Page Display and Settings Reading SubPanel for documentation.