Site logo

Archived topic

Web Stories Archive

7 replies · Started by lerschiboi on April 23, 2022

Viewing posts 1–8 of 8

Hi,

I've started making web stories and would like the web story archive to have 3 columns, just like my other archive pages.

In the customizer -> Layout -> Blog, I checked the option "Display posts in columns" and selected "3" in the dropdown. This works for all of my archive pages such as this one: https://epicveganeats.com/recipes/sides/, but the web stories appear in just one column: https://epicveganeats.com/web-stories/

How can this be fixed?

And are you aware of an option to change the Heading "Archives: Stories" to something else?

Thanks, Lars

Hi there,

try adding this PHP Snippet:

add_filter( 'generate_blog_columns', function( $columns ) {
    if ( ! is_singular() && 'web-story' === get_post_type() ) {
        $columns = true;
    }

    return $columns;
} );

Fantastic, that worked! Do you know how I can change the current headline "Archives: Stories"?

Best, Lars

Page Hero might work, but seems a bit overly complex for the thing I'm trying to achieve: I'd simply like the headline to be called "Web Stories" instead of "Archives: Stories".

Try this PHP Snippet:

add_filter( 'get_the_archive_title', function ( $title ) {
    if ( 'web-story' === get_post_type() ) {
        $title = 'Web Stories';
    }
	return $title;
},50);

Perfect, thanks David!

You're welcome

This archived topic is closed to new replies.