Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Change to one h1?

  • I have GeneratePress and would like to remove the h1 from the header. How do you do it?

  • Hi there,

    try adding this PHP Snippet to your site:

    
    add_filter( 'generate_site_title_output', function( $output ) {
        return sprintf(
            '<p class="main-title"%3$s>
                <a href="%2$s" rel="home">
                    %2$s
                </a>
            </p>',
            esc_url( apply_filters( 'generate_site_title_href', home_url( '/' ) ) ),
            get_bloginfo( 'name' ),
            'microdata' === generate_get_schema_type() ? ' itemprop="headline"' : ''
        );
    });
    

    It will replace the Site Title H1 with a P tag across the site.

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