Pascal Birchler
Forum Replies Created
-
I’ll take the inactivity here as a sign that the error no longer occurs; marking as resolved. If you ever encounter it again, please provide as much detail as possible.
Thanks for your report!
Could you perhaps provide some additional information about where this was happening and what action you were trying to perform? There’s usually a button to copy error messages, which would be extremely helpful for us.Forum: Plugins
In reply to: [Web Stories] How to add url direct to a specific page on storyHeya,
Now that you mention it, I actually completely forgot about this feature, my apologies.
When you add a link to an element (for example by pressing Cmd+K / Ctrl+K) you can actually select a specific page to link to.Forum: Plugins
In reply to: [Web Stories] How to add url direct to a specific page on storyLike I said, you need to check the source code and look for the ID attribute of the
<amp-story-page>. You can’t just use a page number.Here’s an example:
On https://wp.stories.google/stories/turning-your-dream-into-reality/, page number 10 looks like this in the source code:<amp-story-page id="849d7482-9ad6-46af-b8d3-00278643199d".
Thus, I can link to it directly using https://wp.stories.google/stories/turning-your-dream-into-reality/#page=849d7482-9ad6-46af-b8d3-00278643199dForum: Plugins
In reply to: [Web Stories] How to display stories always from the first slide?Forum: Plugins
In reply to: [Web Stories] How to add url direct to a specific page on storyIt’s generally possible to link to a specific page by looking at the
idattribute of the<amp-story-page>element in the source code and using that to construct a link. See https://amp.dev/documentation/components/stories/amp-story#branchingForum: Plugins
In reply to: [Performant Translations] Caching behavior questionTranslated strings themselves don’t require any additional caching in WordPress.
Since version 6.5, WordPress uses a new file format for translation files that is much faster.
This plugin converts the old format to the new one for plugins that don’t yet use it, for example because they’re not hosted on WordPress.org. Simple as that 🙂
Hope that helps!
Forum: Plugins
In reply to: [Web Stories] Issue with Polylang pluginHi there,
Thanks for reaching out.
I don’t know at which stage of the upload process Polylang’s media duplication feature kicks in, but according to some documentation there is apll_enable_duplicate_mediafilter in the plugin to conditionally disable the feature. You could use that to improve compatibility with Web Stories. Example:<?php
/**
* Plugin Name: Do not duplicate posters
* Description: Prevent Polylang from duplicating poster images originating from Web Stories.
*/
add_filter(
'pll_enable_duplicate_media',
function ( $enable, $post_id ) {
// Use $post_id to determine whether it's a poster image.
// For example (untested):
if ( has_term( 'poster-generation', 'web_story_media_source', $post_id ) {
return false;
}
return $enable;
},
10,
2
);Hope that helps!
Forum: Plugins
In reply to: [Preferred Languages] Compatibility with the Astra themeI’m not aware of any incompatibilities nor why there should be some. But if you find any issues with the plugin, please let me know.
Forum: Plugins
In reply to: [Web Stories] About LCP and other questionsIt sounds like you are doing a lot of optimizations for LCP already. Using a CDN for images is a good choice.
A big part of LCP is the time to first byte (TTFB), which is essentially the server load time. Using a caching solution (either with a plugin or on the network layer) will help improve TTFB and LCP. So I recommend looking into that.
As for other recommendations in PageSpeed Insights, they can be taken with a grain of salt as they don’t know the specific AMP / Web Stories stack.
The release cadence has perhaps slowed down, but the plugin is very stable at this point 🙂
Hope this helps!
Forum: Plugins
In reply to: [Web Stories] Older stories have blank pages / elements that won’t loadNo worries, hope you have fully recovered by now!
After taking another look, I think you’ve hit the nail on the head with your previous remark:
The page that’s broken on every story is page 1, which doesn’t allow animation, so this “shouldn’t” be an animation-specific problem
This indeed shouldn’t be a problem, but strangely it is. Normally, animations on the first page should be automatically disabled, even if you tried adding some. However, it looks like that isn’t currently working as expected.
We’ll make sure to fix this in our next release, so that animations on the first page are truly disabled.
In the meantime, you can work around this like so:
- Move the first story page to the second position
- Remove all animations of all the elements
- Move page back to the front
- Save story
Forum: Plugins
In reply to: [Web Stories] How to display stories always from the first slide?The default behavior is simple: users see the new version only when they refresh the page.
For your use case, what might work is the
live-storyfeature as described at https://amp.dev/documentation/components/amp-story#live-storyWith this feature, the story would frequently poll the server for new updates. It’s meant for live content (e.g. during a sports game) but with a low poll interval it might work for you. The default is 15 seconds, but something like 1 hour might be good enough.
The caveat: the Web Stories WordPress plugin doesn’t support this feature out of the box. However, your developer may be able to add the necessary markup changes using a custom “sanitizer” class as in this example: https://gist.github.com/swissspidy/a86f1eabefd24827646973ec4f497539
Forum: Plugins
In reply to: [Web Stories] How to display stories always from the first slide?we’re finding that refreshing the web story takes it to the last page viewed – rather than back to Page 1.
That is expected behavior. When you view a story, your progress is stored in the browser’s Local Storage, so that you can continue where you left off.
Is there any code that we can add to ensure it refreshes to the latest version and goes back to Page 1 of the story?
Unfortunately, no. This is a feature of the Web Stories format itself and nothing done by this plugin. If you prefer a different behavior, I recommend opening a feature request at https://github.com/ampproject/amphtml/.
the bigger problem is that when we update the Web Story content (new copy, images etc), refreshing the Web Story doesn’t show the content updates as it normally does on a WordPress refresh.
Just to clarify, this has nothing to do with the refreshing issue and you don’t see any of the new text when you reload the page? Does it work when you click on the Preview button in the editor? What if you open the story in a new browser or in incognito mode?
If you can share the link to a story where you expect different content after making & saving some changes, that would be helpful.
Forum: Plugins
In reply to: [Web Stories] Older stories have blank pages / elements that won’t loadHi there,
Thanks for reaching out! Sorry to hear you’re having troubles bringing back those stories.
I noticed some of the images in this particular story are broken/missing. When you upload an image to WordPress, it creates various sub-sizes (thumbnails) for use one different screen sizes, but somehow some of them no longer exist. That causes the story pages to be blank
For example: one of the story pages references
https://homemadehooplah.com/wp-content/uploads/2021/03/creamy-spinach-dip-2-1200.jpgand its smaller versionhttps://homemadehooplah.com/wp-content/uploads/2021/03/creamy-spinach-dip-2-1200-400x599.jpg, but the latter doesn’t exist anymore.There are a few easy ways to address this:
- Edit the story, remove each image that looks good in the preview but not on the actual site, and simply upload it again.
- Use a plugin such as Regenerate Thumbnails to create those missing image sub-sizes without having to manually edit the stories.
- Use an image CDN such as Jetpack’s Photon that deals with image sub-sizes so you don’t have to, and also helps with compressing images to make them smaller.
Option 2 is probably the easiest since you mentioned there are a few affected stories.
After that, I definitely recommend updating to the latest version of the plugin again 🙂
Hi there, thanks for reaching out!
Could you perhaps share more details on what exactly you have tried and what you would expect the result to be? A screenshot would already be helfpul.
I just tested inserting the Web Stories block in some widget areas in the Lead News theme and it seems to work just fine.
Note that the Web Stories block doesn’t offer any color customization options or so, but you can choose different layout options (circles, carousel, grid, list).
It would be great if there was a dedicated settings tab in the dashboard where we could configure all the Web Stories display options (layout, colors, buttons, etc.) independently of the theme. After setting it up, the system could generate a specific shortcode based on those saved settings — that would make customization much easier.
We do have something like that in the classic editor, but we highly recommend using the Web Stories block instead, as that offers the most features and the best user experience.