How to edit default page in wordpress?(index page)

24,952

Solution 1

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

Solution 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.

Solution 3

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

Share:
24,952
SimiMathew
Author by

SimiMathew

Updated on July 09, 2022

Comments

  • SimiMathew
    SimiMathew almost 2 years

    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?

  • SimiMathew
    SimiMathew over 7 years
    Front page is already selected as static page ,The selected page is newly created.But the page contain some other things like categories,meta etc by inspecting could find that these are from index page. But how to reach index page? Is there any way in Appearance- >editor?
  • Aipo
    Aipo over 7 years
    I do not recommend to use Appearance- >editor, but i think you need a template for your homepage. Your current empty page is inherited from page.php file, which is a template for all your pages.
  • Nick_O
    Nick_O over 7 years
    To edit categories & meta, these are under widgets, appearance > widgets
  • SimiMathew
    SimiMathew over 7 years
    some theme doesn't show the widgets in appearance > widgets
  • SimiMathew
    SimiMathew over 7 years
    <img src="<?php echo esc_url( get_template_directory_uri() ) ; ?>/images/slides/slider3.jpg" alt="" title="#slidecaption3" />.If i ant to add new pic like this. how it possible?could you plz help me?
  • Aipo
    Aipo over 7 years
    Try adding your code to your page.php file in your current theme folder.