• Resolved manuwp09

    (@manuwp09)


    I have applied a filter in functions.php
    But it does not work:

    function xyz_amp_set_site_icon_url( $data ) {
    // Ideally a 32×32 image
    $data[‘site_icon_url’] = get_stylesheet_directory_uri() . ‘/images/example.jpg’;
    return $data;
    }

    Can somebody help me?

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

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

    (@westonruter)

    You’re missing the add_filter() call. The following should work:

    add_filter( 'amp_site_icon_url', function() {
        return get_stylesheet_directory_uri() . '/images/example.jpg';
    } );
    Thread Starter manuwp09

    (@manuwp09)

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Missing Logo on AMP Structured Data’ is closed to new replies.