• Resolved vincenzovissub

    (@vincenzovissub)


    Google test tool for structured data error

    Invalid structured data element

    {“@type”:”Organization”,”name”:”VISURA SUBITO”}

    you must specify a logo

    How can I to solve?

    Thz

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    Have you supplied a Site Icon in the Customizer?

    Thread Starter vincenzovissub

    (@vincenzovissub)

    yes I have.

    Thread Starter vincenzovissub

    (@vincenzovissub)

    I have set this code in function

    add_filter( ‘amp_post_template_data’, ‘xyz_amp_set_site_icon_url’ );

    function xyz_amp_set_site_icon_url( $data ) {
    // 32×32 image
    $data[‘site_icon_url’] = get_stylesheet_directory_uri() . ‘/images/3232.png’;
    return $data;
    }

    Thread Starter vincenzovissub

    (@vincenzovissub)

    and in wordpress too

    // Set up custom logo
    add_theme_support( ‘custom-logo’ );

    function themename_custom_logo_setup() {
    $defaults = array(
    ‘height’ => 33,
    ‘width’ => 215,
    ‘flex-height’ => true,
    ‘flex-width’ => true,
    ‘header-text’ => array( ‘VISURA SUBITO’, ‘VISURE E CERTIFICATI TELEMATICI’ ),
    );

    add_theme_support( ‘custom-logo’, $defaults );
    }
    add_action( ‘after_setup_theme’, ‘themename_custom_logo_setup’ );

    Thread Starter vincenzovissub

    (@vincenzovissub)

    solved with additional code without using the plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Invalid logo structured data element’ is closed to new replies.