[Resolved] generate_blog_columns filter wrapping author-info in author archive

Home Forums Support [Resolved] generate_blog_columns filter wrapping author-info in author archive

Home Forums Support generate_blog_columns filter wrapping author-info in author archive

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2368461
    akal

    Hi, thank to this filter we can organize custom post in column grid inside archive ‘pages’, including the archive author ‘page’.

    add_filter( 'generate_blog_columns', function( $columns ) {
        if ( 'my_custom_post' === get_post_type() && ! is_singular() ) {
            return true;
        }
        return $columns;
    } );

    Maybe I missed something, but it appears the author biography (author-info) when it exists, is wrapped inside the generate-columns-container. Could you please check it and let me know if there is something we can do for that ?
    Check => https://blockchainyourart.gatcom.fr/community/vernon/

    Alternativement, I can easily add the author bio within my block hook element (gb-author-cover), but in that case, I would like to remove (no css!) the existing author biography (“author-info”).

    Any ideas ?

    #2368913
    David
    Staff
    Customer Support

    Hi there,

    you can use a PHP Snippet to remove the author description:

    
    add_action('wp', function(){
        if ( is_author() ) {
            remove_action( 'generate_after_archive_title', 'generate_do_archive_description' );
        }
    });
    #2369447
    akal

    Hi David, ok thanks for the reminder, I should spend more time reading the GP Docs (hook collection) ๐Ÿ˜›

    #2369727
    David
    Staff
    Customer Support

    No problems – glad to be of help ๐Ÿ™‚

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