• I only find “index.php” here and on Hostgator cPanel. Is there an “index.html” file anywhere?

    WP 3
    Imported theme … working fine … but need to edit a button off of the home page.

    Please help.

    Chelle

Viewing 8 replies - 1 through 8 (of 8 total)
  • WP uses php, not html so you will not find a index.html. Please link to your site so we can see what button you’re talking about. It may be as easy as replacing the graphic or you may have to edit a theme file.

    You don’t want an index.html file in the same directory as your index.php – the index.html file will execute first and stop WordPress from working. WordPress does not have an index.html file but uses index.php to start and run.

    Typically a host will put an index.html file in the root at the start with an “Under Construction / Coming Soon” message so visitors don’t get an error when your site is first up. Then when you have WordPress up and installed the index.html is deleted or renamed to allow WordPress to run.

    Thread Starter cyara

    (@cyara)

    Thank you so much Patyuen and Saildude.

    So how can someone remove a defunct button from a theme? I bought the theme. Can any html editing be done with WordPress? Sorry so new and learning html. When I open the index.php file it does not have the source code for the site …. like when you go and view source code on a site… I can see what needs changing but no idea where to put it.

    I did try uploading an index.html file and it did just as you said Saildude…. WordPress stopped working as a blog.. no posts showed.So had to wipe it all out and start again with original uploads. Now stuck with buttons on the page that need to be removed.

    Can you link the site please. Easier to see what needs to be done if we can look at it.

    Post a link to your site with a note about what button, sometimes people here can tell you exactly what file it is in.

    WordPress is put together like a series of subroutine calls, header, page, post, sidebar etc, index just starts things off.

    The place to start is in your Theme files, they are found in the Theme Folder. wp-content >> themes

    Then look in the file for the area that has the defunct button.

    If you paste a large amount of code please use the “Paste Bin” sorry don’t know the link off hand.

    good luck

    Thread Starter cyara

    (@cyara)

    Aaaah! I got it! I found it under “Edit Themes” in the “header.php” file.

    Thank you so much Saildude! I see now how the html is placed here. Really neat if I can actually get it to do what I want. ??

    Can I ask one more thing? This is my site…
    https://sustainableonlinesuccess.com/

    and I don’t want the main header reading “sustainableonlinesuccess.com” but “Sustainable Online Success”

    The main Header code is this:
    <h1>“><?php bloginfo(‘name’); ?></h1>
    Is there a place it is drawing the name from?

    No clue… If I view page source on the site this part reads like this:
    <h1>sustainableonlinesuccess.com</h1>

    That is easy to change but I don’t know how to change the WP html without maybe messing up my blog again.

    Log into WordPress

    Dashboard >> Settings >> General >> Try changing “Blog Title”

    Should not require any code to change the text in your header.

    Thread Starter cyara

    (@cyara)

    It worked! Really neat. Thanks again Saildude. Really appreciate all the help you gave me.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Where is the index.html file located?’ is closed to new replies.