WordPress.org

Ready to get started?Download WordPress

Forums

How to change the index page of your site (9 posts)

  1. CountryHolidaysUK
    Member
    Posted 5 years ago #

    Hi folks,

    Got a request for al you guru's out there

    i have a site http://www.countryholidaysuk.co.uk , what i want to do is change the index/home page so that it looks different to the rest of the site and then when a user clicks away from that it will start to take the appearance of a blog, so it would kind of give it a website look opposed to a straight out blog.

    I know very little about this sort of thing but would appreciatte anyone's help in doing this

    Ta

  2. Samuel B
    moderator
    Posted 5 years ago #

    create a Page Template
    http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
    go to
    admin - settings - reading
    set this Page to be static home page

    just use the default template for your blog postings

  3. Mkhululi
    Member
    Posted 4 years ago #

    I tried the above on this site:
    http://www.imustsolutions.co.za/sbs

    This is what I did:

    1. Created a new page called home.php to use as an index page. Set it as such under settings > reading
    2. Created a new page called portfolio.php to use as a post page. I did not add any new content on this page.

    Applied the advice given by Samboll above - but the posts do not appear in the portfolio page. Both pages show what should be showing in the index page.

    What am I doing wrong? Here is the site again: http://www.imustsolutions.co.za/sbs

    Please help...

    Thanks.

  4. micasuh
    Member
    Posted 4 years ago #

    Mkhululi,

    home.php is an a former template file that was discontinued around version 2.5. If you have home.php in your template, it will overtake the functionality of index.php. You'll have to rename home.php to another name in order for your setup to work.

  5. henkholland
    Member
    Posted 4 years ago #

    Mkhului, read here: http://codex.wordpress.org/Creating_a_Static_Front_Page

    You really do not need any new php templates for this, just pages created from the WP Dashboard/New page

  6. Mkhululi
    Member
    Posted 4 years ago #

    Micasuh, Henk,

    Thank you guys.

    Henk, having followed the link you posted. It seems this:

    Enable "Permalinks" to show the "page title" in the address, since /index.php?p=423 defeats the purpose of making a static front page

    is the root of the problem.

    Now the problem has changed to the old problem of permalinks. Is there a simpler way of changing from /page_id=x links format to /page_title? Because I can't seem to get it to work. Also I read somewhere that this can't be done.

    Thanks in advance.

    Thanks

  7. henkholland
    Member
    Posted 4 years ago #

    Hi Mkhululi,

    Further up you wrote:
    Created a new page called home.php to use as an index page. Set it as such under settings > reading
    Created a new page called portfolio.php to use as a post page. I did not add any new content on this page.
    Is this still valid? Because for the "static front page"link I supplied you do not need to make template's (xxx.php) but normal WordPress pages in the Dashboard/Add New Page.
    First get that right and deal with permalinks later (leaving them set to standard as yo have now)

  8. Mkhululi
    Member
    Posted 4 years ago #

    Hi Henk,

    The problem with the duplication of the content is sorted. However, I don't the listing of the posts at the moment.

    I think it is due to the problem I highlighted above.

    Thanks again.

    Regards,
    M

  9. henkholland
    Member
    Posted 4 years ago #

    I always found reading this very helpfull:
    http://codex.wordpress.org/Template_Hierarchy

    Also, in the developing stage, I added this to my theme files (to: index. php single.php etc):

    <div id="container">
    <p>Dit is index.php</p>
    in each writing their own name so that it shows when viewing the site which template is in action.
    <div id="container"> is usually allready there (just to indicate where to put it).

Topic Closed

This topic has been closed to new replies.

About this Topic