• Greetings!

    I was just wondering if anyone could give me some directions on what to do if I want to add an index page to my wordpress site.
    My index will be just a background image and an “enter site” button which take you to the main site with menus, posts and everything.

    Others: I know the basics of coding.

    Others 2: Have a nice weekend!

    sincerely,
    Michael

Viewing 4 replies - 1 through 4 (of 4 total)
  • Under settings you can specify if you want to have a static front page other than a standard ‘blog’ page.

    http://codex.wordpress.org/Creating_a_Static_Front_Page

    You may need to create a page template that doesn’t call any of the navigation, sidebar, and footer elements to get what you desire.

    Good luck!

    Or just go into your host’s cPanel and change the behavior in which your site is shown; set an order:

    1. index.htm
    2. index.html
    3. index.aspx
    4. index.php (WordPress)

    Then just make the landing page / splash page .htm, html, etc., and have the “enter” point to your WordPress installation, which is index.php or /your-WordPress-directory/index.php.

    Thread Starter Michael

    (@kcmello)

    I created an index.php file which I added code that looks like

    <?php
    
    $url = 'background-image.png';
    
    ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
     "http://www.w3.org/TR/html4/strict.dtd">
    
    <html lang="en">
    <head>
    
    <title>This is a test</title>
    
    <style type="text/css">
    body
    {
        background-image:url('<?php echo $url ?>');
    }
    </style>
    
    </head>
    
    <body>
    
    <p>This is a test.</p>
    
    </body>
    </html>

    I uploaded it in my cpanel file management in the theme folder which im currently using. But still I do not get any index page.

    WebPrezence. Where in cpanel do I change the order?

    Hi there. I think I understand. I did this for my site too (eventually), with no plugins or complicated CSS editing. I managed to have one image and some text underneath that just said ‘Enter site here’, and nothing else on the page at all. How I did it was as follows:

    – I created a page called ‘landing page’;
    – I made that my new ‘static’ home page, so that it is first page anyone comes to if they go to my site;
    – When editing my new ‘landing page’, I went to where it says ‘page attributes’, I changed the drop-down menu to ‘Raw’ (it is usually a ‘template’ page);
    – I then created basic html coding using the free tool ‘Kompozer‘ to just display an image and text that both link to the page I want it to (in my case it was ended in /home, but it could go to any of your pages);
    – Copy the HTML code and paste it into the tab that says ‘Text’ when editing your page (rather than ‘Visual’). Save the changes and your page will be a basic html page instead of a WordPress template;
    – The final step was for me to go to ‘Appearance’, then ‘Menus’ and removed ‘landing page’ from the menu list, so that it isn’t accessible any other way, or listed in my menu bar.

    It worked for me, so hope it helps 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Adding a different index page’ is closed to new replies.