Home › Forums › Support › Footer Hook problem on CPT archive This topic has 5 replies, 2 voices, and was last updated 5 months, 2 weeks ago by Fernando. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts October 6, 2022 at 6:59 pm #2365758 melvin wang Hi, I’ve a footer hook block in my entire site https://imgur.com/a/JdmbAXT , things look good except on my CPT archive desktop https://imgur.com/a/eXGJS4a . Things i’ve done : regenerate external CSS but still the same, any idea on how to solve it? TQ October 6, 2022 at 9:06 pm #2365807 Fernando Customer Support Hi Melvin, Try adding this Snippet: add_filter( 'post_class', function( $classes ) { if ( is_archive() && in_array( 'gb-query-loop-item', $classes ) ) { $index = array_search('generate-columns',$classes); if($index !== FALSE){ unset($classes[$index]); } } return $classes; } ); Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets October 6, 2022 at 9:42 pm #2365823 melvin wang Hi Fernando, Thanks it fixed the issue. May I know whats the code about and why it will fix ya? TQ October 6, 2022 at 10:13 pm #2365832 Fernando Customer Support It removes the class generate-columns from Query loops which sets columns for loops in archive pages in general. October 6, 2022 at 11:51 pm #2365889 melvin wang ok noted. thanks fernando October 7, 2022 at 12:46 am #2365918 Fernando Customer Support You’re welcome Melvin! Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In