• When a child theme is created, the following error occurred. How to fix this problem?

    Template part has been deleted or is unavailable: main-header

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Creta Themes

    (@cretathemes)

    Hello @18118-1 ,
    For you above query,

    Locate main-header.html in Parent Theme:
    wp-content/themes/lighting-fixtures/parts/main-header.html

    Copy main-header.html to Child Theme:
    wp-content/themes/your-child-theme/parts/main-header.html


    Ensure the reference to main-header is correct.

    Thread Starter thesage

    (@18118-1)

    I have already copied the file and changed the directory inside the main-header.html. It’s still not working.

    <!-- wp:pattern {"slug":"child-directory/main-header"} /-->

    How to “Ensure the reference to main-header is correct.”?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.