• I have published a web story in my website but it is showing Missing URL for attribute ‘publisher-logo-src’ in tag ‘amp-story’.

    i have also added logo throught plugin setting but that didint work. then i also tried to add code to set publisher-logo-src but that didnt work too

    add_filter(‘amp_story_attributes’, ‘add_publisher_logo_src’);
    function add_publisher_logo_src($attributes) {
    $attributes[‘publisher-logo-src’] = ‘https://kiradiam.com/wp-content/uploads/2023/05/Untitled-design-28.png’;
    return $attributes;
    }

    what is the issue how can i solve that.

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

Viewing 1 replies (of 1 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    Hi there,

    Did you set a default logo in the settings. In the editor under the “Document” tab, did you also choose a logo? Please share a screenshot of what you see in the settings and in the editor. Thanks!

    I don’t know how you came up with amp_story_attributes, but that filter does not exist, nor would you need to add any PHP code to add the publisher logo.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.