• Resolved sroskylos

    (@sroskylo1)


    How can i modify the author archive?

    I am trying to import 2 columns with the author’s description and image.

    Need to place the columns in the top of posts in author archive page.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @sroskylo1,

    You’ll need GP Premium to modify the Author Archive page.

    Without it, you’ll need to modify or create your own template file.

    Thread Starter sroskylos

    (@sroskylo1)

    The bellow solution is right?

    add_action( 'generate_before_main_content', function() {
        if ( ! is_author() ) {
            return;
        }
        ?>
        <header class="page-header">
            <h1><?php echo get_the_title( get_option('page_for_posts', true) ); ?></h1>
        </header>
        <?php
    } );

    I get and modify the code from the following support post here

    That code will display the title of your BLOG page at the top of your Author page.

    But you should not need any code.

    By default the Theme will display the Author Avatar, the Author Name and the Author Description at the top of the author archive page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How To Modify Author Archive Page?’ is closed to new replies.