Archived topic
Archive page not responsive
24 replies · Started by Gianluca on February 7, 2020
No problem!
Sorry we couldn't be more helpful.
Let me know if you end up finding the cause/solution :)
Hi Leo, I'm trying to find the issue related to the responsive page and found that I have a snippet in the code snippet plugin which is probably causing it.
The snippet is this one:
add_filter( 'generate_show_excerpt', function( $show ) {
if ( is_archive() || is_home() ) {
return true;
}
return $show;
} );
which I used to display the excerpt in category pages in combination with this option https://imgur.com/a/1FO4UQY in Customizer > Layout > Blog
Now, if I deactivate the snippet, the page is responsive again but the excerpt is not set to 25 as I'd like https://imgur.com/a/Jj3pC4x
Do you have by any chance an idea on how to make it work again?
Thank you in advance
Hmm it's really not possible that snippet would cause the responsive issue unfortunately - if so then it would've happen to all of our machines.
That filter is the only way to set the excerpt differently and it definitely cannot cause the responsive issue.
Ok, but this option https://imgur.com/a/1FO4UQY is not supposed to make the excerpt world count to 25, without using the snippet?
Here are the 3 reasons why the excerpt option is the customizer is not working:
https://generatepress.com/forums/topic/blog-page-post-excerpt/#post-1096398
Can you double-check?
As for the snippets, what if you disable all other snippets and only keep that one active?
Again if the snippet was causing the issue, it should've happened when I logged in and tested yesterday.
Ok, I understand, I have the more tag on blog posts.
If I disable all other snippets and keep only the excerpt snippet, page is not responsive on my laptop.
That is so strange.
Unfortunately I really have no idea what it could be - especially it's not happening to us.
I just tested on my laptop and my wife's laptop and no issues either.
Do you happen to have a friend who might be able to test it for you?
I've tested on other 2 laptops but I still have the same issue unfortunately.
I was thinking that it was maybe something related with the snippet code but I understand that is not possible to create the same behaviour from your end.
Don't worry Leo, thank you anyway for your help!
No problem :)