How do I edit the header, footer, or sidebar in WordPress?

Applies to: WordPress.org (self-hosted)
Last updated: May 2025


Problem

You want to change the content or layout of your site’s header, footer, or sidebar, but you’re unsure where to edit these areas.


Solution

WordPress offers several ways to modify these parts of your site depending on your theme. You can use the Customizer, Widgets, Menus, or, for block-based themes, the Site Editor.


Option 1: Using the Customizer (Classic Themes)

  1. Go to Appearance > Customize
  2. Look for specific sections like:
    • Header or Header Settings
    • Footer or Footer Widgets
    • Widgets for sidebars and footer areas

You can usually:

  • Upload a logo or change header text
  • Add or remove social links
  • Change layout or background color
  • Assign widget areas for content blocks like menus, recent posts, or contact forms

Option 2: Using the Widgets Panel

  1. Go to Appearance > Widgets
  2. Locate the Sidebar, Footer, or Header widget areas (based on your theme)
  3. Drag and drop widgets like:
    • Text
    • Navigation Menu
    • Recent Posts
    • Custom HTML
  4. Click Update to save changes

This method is available in non-block-based themes.


Option 3: Using the Full Site Editor (Block Themes)

If your theme supports Full Site Editing (e.g., Twenty Twenty-Four):

  1. Go to Appearance > Editor
  2. Click on the Header or Footer area
  3. Use blocks to modify or add:
    • Logos
    • Navigation menus
    • Buttons
    • Custom text or widgets
  4. Click Save when finished

You can also edit templates and assign them to specific pages or post types.


Option 4: Edit Theme Files (Advanced)

If you’re comfortable editing code and using a child theme, you can directly modify:

  • header.php — for site header
  • footer.php — for site footer
  • sidebar.php — for sidebar content

These files are located under /wp-content/themes/your-theme/. Always back up before making changes, and never edit parent theme files directly.


Notes

  • What you can edit and how depends on your theme and whether it uses the Customizer, widget areas, or block editor
  • If you’re unsure, consult your theme’s documentation
  • Consider using a staging site for major layout changes

You may also like...