• Resolved charlie67p

    (@charlie67p)


    Hi,

    I made a Twenty Three child theme.

    When I make a change on a template in the site Editor, I click Save, It displays “template saved”, but when I reload the list of templates, I see that the change was not saved (same on front-end).

    When I click Create new template, it says “template was created”, but nothing appears in my template list…

    Then I duplicated my child theme, to make a new (not a child) theme. I deleted the original 23 theme. But the issue is still the same.

    Thanks for your help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter charlie67p

    (@charlie67p)

    OK, I just understood that I had a pre_get_posts Hook in my functions.php that was messing up everything. I’m checking this.

    Thread Starter charlie67p

    (@charlie67p)

    OK, I solved it, it was because I forgot to add this around my pre_get_posts Hook :

    if ( !is_admin() && $query->is_main_query() ) {
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘site Editor can’t save changes, can’t create new template’ is closed to new replies.