How do i change the index page in wordpress?

WordPress is a free content management system that can be used as a framework to create a website. Once set up, WordPress provides users with a back-end administration area where users can adjust settings in their website, including setting which page will be the home page. This can be done in the "Settings" section of the WordPress back end and takes only a few minutes to do.

  1. Log in to the administration area of your WordPress site.

  2. Click on "Settings" in the left sidebar to expand the "Settings" submenu. Click on "Reading" in the submenu.

  3. Click on the radio button labelled "A static page" in the "Front Page Displays" section to set the front page to display a static page. Use the drop-down menu labeled "Front Page" to set which of your WordPress pages you would like to use as the front page. Use the drop-down menu labeled "Posts Page" to select the page you would like to use to display your WordPress posts, since they will no longer be shown on the front page.

  4. Click the blue "Save" button at the bottom of the page to change your default home page on your WordPress site.

  • I installed wordpress in the root directory, and I set DirectoryIndex home.php index.php in .htaccess.

    I want to display home.php when the user visits https://www.mysite.com/, but when the user visits https://www.mysite.com/index.php, the content of home.php is still displayed.

    How can I set it for users to visit https://www.mysite.com/index.php displays the content of the wordpress homepage?

    • This topic was modified 11 months, 1 week ago by tonyzyc.

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

  • Moderator t-p

    (@t-p)

    @tonyzyc What’s in your .htaccess file?

    here is .htaccess file

    # BEGIN WordPress
    # The directives (lines) between “BEGIN WordPress” and “END WordPress” are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    # Prevent Directoy listing
    Options -Indexes
    DirectoryIndex home.php index.php

    >>DirectoryIndex home.php index.php<<

    Is that working for you Or is it still loading index.php when you visit http://www.mysite.com?

    Let me know!

    @tonyzyc Post a link to your website, I need to test out few things before I could give you the code for it 🙂

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

  • The topic ‘How to Change Default Index Page’ is closed to new replies.

How to edit default page in WordPress site?(index page). I am inspecting the current page, and find that the code is in index page. But there is no way to find where is the file located. The site hosted on hostinger. Then I am trying to edit other pages other than default page? Is there is a way to find the index page?

How do i change the index page in wordpress?

tousif

7512 gold badges12 silver badges31 bronze badges

asked Sep 26, 2016 at 6:16

2

For editing on index page in wordpress you can find it in wordpress theme, go to wp-content >> your current theme and edit index page.

answered Sep 26, 2016 at 7:58

How do i change the index page in wordpress?

To edit home page on wordpres : Go to : wp-content/themes/your-main-theme/index.php .

answered Oct 12, 2016 at 20:17

If you would like only edit some part of the code you can use this url

your_address/wp-admin/theme-editor.php

or in your dashboard as admin user: Appearance -> Editor

answered Jul 4, 2017 at 14:57

How do i change the index page in wordpress?

there can be more then one way to edit a Wordpress website. The best way is to create a "Child Theme", here are some good instructions on it. This way the main theme can still be updated without loosing your changes. Wordpress is a Content Management System so most likely you will be able to make a lot of changes via the admin panel. The link I added has more detailed instructions.

answered Sep 26, 2016 at 7:37

How do i change the index page in wordpress?

Nick_ONick_O

3783 silver badges17 bronze badges

0

Your index page is like a template where you put things to it. Go Settings->Reading->FrontPage, and you can set any of your existing page to be your homepage. Is that what you want to change?

https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/

Here is some info how files are loaded. And file hierarchy explained. In your situation every new you page uses a page.php template.For example in this case, you should create homepage.php in your theme, copy the content from page.php, and clear that part where <div> contains sidebar as id.

How do i change the index page in wordpress?

Mr Lister

44.5k15 gold badges107 silver badges146 bronze badges

answered Sep 26, 2016 at 7:39

AipoAipo

1,6153 gold badges20 silver badges47 bronze badges

6

You can edit the Source HTML/PHP code thru the built in "editor" under "appearance" in your back-end dashboard, by selecting your pages/templates. Alternatively you may FTP into the server and DIRECT edit the HTML code within your homepage.php, etc files with a text editor.

answered Sep 27, 2019 at 15:17

How do i change the index page in wordpress?

Option one: Download the theme. Then open any file of that theme in file editor. Then search for/find (Ctrl+F) that code/text you are looking for. Select option in which file or folder search for. It will locate the code with file location.

Option Two: If you have FTP access by using FileZilla you will be able to find the file by searching for the code/text.

answered Jul 4, 2017 at 13:39

How do I edit the index page in WordPress?

For editing on index page in wordpress you can find it in wordpress theme, go to wp-content >> your current theme and edit index page.

How do I change the default index page in WordPress?

How to Change the Default Home Page in WordPress.
Log in to the administration area of your WordPress site..
Click on "Settings" in the left sidebar to expand the "Settings" submenu. ... .
Click on the radio button labelled "A static page" in the "Front Page Displays" section to set the front page to display a static page..

How do I customize my WordPress homepage?

To designate your static homepage, go to My Sites → Appearance → Customize → Homepage Settings:.
Then, under Front page displays, choose A static page. ... .
Next, on the Posts page dropdown, select the “Posts” page you created. ... .
Last, click on Publish for these changes to take effect..

How do I create an index page in WordPress?

Blog Posts Index page as Internal Page.
Step 1) Create a page called “Blog” or “Articles” or “Name it what-ever-you-want”..
step 2) Select this newly created page for “Your Homepage Displays” option from the Settings -> Reading panel..
step 3) That's all. WordPress will use index. php or home. ... .
Admin Dashboard -> Posts panel..