• Resolved dsb01

    (@dsb01)


    Hi all, I’m just in the process of learning a bit about the way tt2 theme is put together..

    I’ve been following this tutorial on how to create a wp block theme to get a better understanding: https://fullsiteediting.com/lessons/creating-block-based-themes/

    As described, I’ve created a basic theme with index.html, style.css, theme.json and functions.php

    One of the first things I’ve noticed is that if i include <!– wp:search /–> in the html index template, wordpress tells me “Your site doesn’t include support for the “core/seaarch” block”

    I have included theme support in my functions.php as described in the article:

    
    <code>
    if ( ! function_exists( 'fse_setup' ) ) {
    	function fse_setup() {
                add_theme_support( 'wp-block-styles' );
            }
    }
    add_action( 'after_setup_theme', 'fse_setup' );

    So – I was wondering if anyone can tell me why there is no support for a search block?

    • This topic was modified 2 years, 3 months ago by dsb01.
    • This topic was modified 2 years, 3 months ago by dsb01.
    • This topic was modified 2 years, 3 months ago by dsb01.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dsb01

    (@dsb01)

    Side note: as a matter of fact, I can actually drag a search block onto the content area in the editor – that works fine.

    So.. this isn’t a support question as such since everything works and I wouldn’t normally be putting a search box into content using markup…

    Still, it’s more of a question to help my understanding – why is it that, when I put <– search/ –> into html it works under tt2 theme, but doesn’t work under my basic tutorial theme?

    Thread Starter dsb01

    (@dsb01)

    spot the obvious typo: “seaarch” !!

    Having corrected that, everything works as it should.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No support for core/search’ is closed to new replies.