• Resolved philraymond

    (@philraymond)


    When you insert a page and display ‘All’, it includes the title in an h1 tag. Any way to change that to an h2 without hacking the files?

Viewing 1 replies (of 1 total)
  • Plugin Author Paul Ryan

    (@figureone)

    Fastest option would be to add a custom template to your theme folder and use that for the display. Your shortcode would look something like [insert page='your-page' display='your-custom-template.php'] and then your-custom-template.php in your theme folder would look like:

    <?php 
    /**
     * Template Name: Your Custom Template Name
     */
    while ( have_posts() ) : the_post(); ?>
        <h2><?php the_title(); ?></h2>
        <?php the_content(); ?>
        <?php the_meta(); ?>
    <?php endwhile;
    
Viewing 1 replies (of 1 total)

The topic ‘Title is h1’ is closed to new replies.