Reply To: Move Archive Title + Description To Below Header

Home Forums Support Move Archive Title + Description To Below Header Reply To: Move Archive Title + Description To Below Header

#169372
Tom
Lead Developer
Lead Developer

Hi Paris,

Awesome, let’s give it a try:

add_action( 'after_setup_theme','generate_remove_archive_titles' );
function generate_remove_archive_titles()
{
    remove_action( 'generate_archive_title','generate_archive_title' );
}

add_action( 'generate_after_header','generate_add_archive_titles' );
function generate_add_archive_titles()
{
    if ( ! is_archive() )
        return;
    ?>
        <div class="page-header">
            <?php generate_archive_title(); ?>
        </div>
    <?php
}

Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

Let me know how it works out – might need some tweaking 🙂