Site logo

Archived topic

404 page - looks twisted

7 replies · Started by Anders Nielsen on November 25, 2021

Viewing posts 1–8 of 8

I'm trying to setup a 404 page, but the page looks kind a weird.

Maybe there is missing som css on 404 pages?

Hi there,

very peculiar - the 404 page is outputting the GeneratePress Columns Container which should only exist on Archive/Blog pages. Do you have any custom functions for adding columns to other pages/cpts ?

Hmm no, not that I'm aware off.

Can you add this PHP snippet to your site:

add_filter( 'generate_blog_columns', function( $columns ) {
    if ( is_404() ) {
        return false;
    }

    return $columsn;
} );

Done – that works :)

Glad to hear that!!

Hi David

I'm afraid the snippets effects the /blog page

How odd... is it possible to get temporary admin access to the site so i can see whats going on?

This archived topic is closed to new replies.