• Resolved saadi123

    (@saadi123)


    Hi there,

    Although there are very similar questions on this forum but I don’t think so that any one of them addresses my concern.

    I’m using Zerif Lite theme. Although I believe that this does not have to do anything with the theme.

    I have WordPress installed locally on my computer through WAMP server. Now, when I try to access my blog through web browser using https://localhost/mysite/wordpress it displays the (static) main page which I want to be displayed. index.php is also the same. However, this index.php does not show up in the “Pages” section of wordpress dashboard.

    I tried to work it around and created a Homepage however, the permalink is already showing up like this. https://localhost/mysite/wordpress/index.php/home.php

    Apparently, it seems like that index.php and home.php are different. My question is that how can I display the index.php in the “Pages” section of the wordpress dashboard?

    I’ve used every option from selecting the Static Front page and setting the Home.php as the front page but it does not work as it displays an empty page.

    Let me know if this is not confusing. I’ll be waiting for the reply.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi saadi123!

    Apparently, it seems like that index.php and home.php are different

    Let me try and give a little insight in hopes it will make some sense. ??

    First, the way WordPress work is by using the template hierarchy:
    https://developer.www.ads-software.com/themes/basics/template-hierarchy/

    Give that a quick look over to get a bit of an understanding as to what file is being used. The front page setting is a little hard for some to understand because it can be one of three files being used. Yeah. 3 files. Took me a while to understand as well.

    With that bit of knowledge we can take on what is being used. If you are using the latest posts the theme will use home.php if that file is available, other wise it will fallback to index.php to display those posts.

    Now, if you are using a static front page ( under your Reading settings ) it will use front-page.php if that file is available. If not it will try and use page.php if the theme has that file available. It those two are not found it will use index.php to display the content of the page you choose to be the front page.

    See? It can be a little odd!

    Hope that gives you some insight on how files are loaded within WorPress.

    However, this index.php does not show up in the “Pages” section of wordpress dashboard.

    The reason is because the page you set in your Settings > Reading is the content you want to edit. There is quick overview in the codex:
    https://codex.www.ads-software.com/Creating_a_Static_Front_Page

    WordPress does not use files for content. Which can be a great thing because it does make for changing themes a lot easier. ??

    Hope that helps you understand a little more.

    Thread Starter saadi123

    (@saadi123)

    Hi Jose,

    Thanks for your response. It helped me a lot.

    Currently, my WordPress is using index.php. I wanted to edit the main default page of Zerif lite as I was just being lazy and did not want to go through the trouble of re-creating the whole page from scratch.

    I realized that they provide this option from the Customize option under the Appearance tab. So I’m gonna use that option. I wanted it to appear in the Pages section as it provides more liberty but as you said, (for technical reasons) it won’t appear there so the only two options are to customize the main page from the Customize option or create a whole new page and make it a static front page.

    I’ll go with the first one.

    Having said that, I also skimmed through your shared documents and they helped a lot in strengthening my WordPress concepts.

    Thanks once again for sharing them.

    Regards,
    Muhammad Saad.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Awesome!

    Glad to see you got some use out of that info. ??

    Stick with it and in time you’ll be making your own themes ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Index.php page not showing up in the pages section’ is closed to new replies.