Forums

[resolved] Page theming! Need fast help. (7 posts)

  1. Antonio
    Member
    Posted 1 year ago #

    Hi all wp users :)
    I have little problem. I'm creating my own design, but now having some problems with theming, so i will go directly to my problem:

    I created two pages: Main Page and News. In control panel (reading section) i set Front page: Main page and Posts page: News

    So i want create 2 different themes for Main page and News (Main page will be simple page without content, News - blog entries - posts) What script i should use in my index.php file ? Also i will create other pages like contacts (with some content) and etc. So i am asking again, what script i should use ?

    Big thanks for help and sorry for my english skills :/

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    If your theme does not have a home.php or front-page.php template file, it will automatically use your default page template (page.php). Your main post page will use the index.php template file irrespective of any custom template you might try to apply.

  3. jimmyt1988
    Member
    Posted 1 year ago #

    The place where I started was to look in the default theme directory for hints and tips.

    So go check out the files and folders included in the 'twentyten' theme, and just try and copy bits and bobs to see waht happens.

    Another good place to start is: http://codex.wordpress.org/Theme_Development

  4. Antonio
    Member
    Posted 1 year ago #

    So i should use
    home.php for Front page
    index.php for blog entries
    page.php for other pages with content
    ?

    Maybe can show some scripts ?

  5. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Actually, I'd suggest using front-page.php for your home page. home.php is server-specific and may not work in every situation.
    index.php will be used for your main posts page.
    page.php will be used for your Pages unless you specify a custom page template.

    Also see Template_Hierarchy.

  6. Antonio
    Member
    Posted 1 year ago #

    Thanks mates for incredibly fast help :) I allways will love wp community for that :P So i am going to read wp codex :) Thanks again.

  7. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    No problem :-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags