[Resolved] Archive Column

Home Forums Support [Resolved] Archive Column

Home Forums Support Archive Column

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1443608
    demoxing

    I want 2 columns on my homepage, it is just fine. but I don’t want to show 2 columns in my category section.
    Possible to display archive posts in a single column?

    reference: https://imgur.com/P9sphPy

    #1443766
    David
    Staff
    Customer Support

    Hi there,

    try adding this PHP Snippet:

    add_filter( 'generate_blog_columns','db_blog_only_columns' );
    function db_blog_only_columns( $columns ) {
        if ( !is_home() ) {
            return false;
        }
    
        return $columns;
    }

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    #1443827
    demoxing

    Thanks, David! you always rock ❤️

    #1443947
    David
    Staff
    Customer Support

    Glad to be of help 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.