• Resolved collinsavenue

    (@collinsavenue)


    [ Moderator note: moved to Fixing WordPress. ]

    I go to settings and select “Front page displays blog page”. Now if I go to edit that page, there is no templates available under Page attributes.
    Using woocommerce storefront theme.

Viewing 4 replies - 1 through 4 (of 4 total)
  • If you set your home page to display the blog articles you won’t use a standard page template for it. You’ll use the standard archive page, which will normally fall back to index.php, but could be something different depending on your theme. If you want to make changes to that you’ll have to find the right remplate file, which will be one of the archive templates.

    Thread Starter collinsavenue

    (@collinsavenue)

    Ok, thanks. I got it working by editing index.php in child theme. Now my content shows up but how can I edit this code to get title in <h1> tags?

    <?php
    $id=74;
    $post = get_post($id);
    $title = apply_filters('the_title', $post->post_title);
    echo $title;
    $content = apply_filters('the_content', $post->post_content);
    echo $content;
    ?>

    The easy way is…

    echo '<h1>' . $title . '</h1>';

    Thread Starter collinsavenue

    (@collinsavenue)

    Thanks again for your help.

    • This reply was modified 7 years, 7 months ago by collinsavenue.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t select blog page template.’ is closed to new replies.