• It would be nice to support FSE themes – templates are reported incorrectly (template-canvas.php incorrectly being reported as the template for all pages/posts and template parts are not reported at all)

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks for the message. Template parts for FSE themes should be reported correctly as I added support for this a long while ago; are you using the latest version of QM? Which theme are you using?

    Regarding the page template, what information do you think would be best to see? template-canvas.php is technically the correct template for FSE themes but it’s not the most useful information to see. What would be better to show instead?

    Thread Starter Lovro Hrust

    (@lovor)

    Hi, thanks for quick answer. It is a custom theme I developed. It would be useful to see the same things as on classic themes, template (as index.html for example and template part as header.html) I am using the latest version of query monitor.

    • This reply was modified 1 year, 9 months ago by Lovro Hrust.
    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    I’ve been working on some additional improvements to the Theme panel when a block theme or FSE is in use. I’ll release a new version of QM with these changes soon.

    Thread Starter Lovro Hrust

    (@lovor)

    Thank you for the update, though I am now getting an error, although html template is visible in the lower part:
    parts/header.html
    Warning: Undefined array key “C:/Wamp.NET/sites/nick-notas/wp-content/themes/nicknotaswebsite/parts/header.html” in C:\Wamp.NET\sites\nick-notas\wp-content\plugins\query-monitor\output\html\theme.php on line 108

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    I’ve not released an update yet. Which version of QM are you using?

    Thread Starter Lovro Hrust

    (@lovor)

    Version 3.11.2

    Thread Starter Lovro Hrust

    (@lovor)

    Thanks for the update! Now, html template is correctly displayed, which made me very happy, there is still minor issue of PHP errors in detailed pane “Template parts”:

    parts/header-front.html
    Warning: Undefined array key “C:/Wamp.NET/sites/nick-notas/wp-content/themes/theme/parts/header-front.html” in C:\Wamp.NET\sites\site\wp-content\plugins\query-monitor\output\html\theme.php on line 167
    parts/footer.html
    Warning: Undefined array key “C:/Wamp.NET/sites/nick-notas/wp-content/themes/theme/parts/footer.html” in C:\Wamp.NET\sites\site\wp-content\plugins\query-monitor\output\html\theme.php on line 167

    • This reply was modified 1 year, 8 months ago by Lovro Hrust.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Support for full site editing theme’ is closed to new replies.