• lukeratto

    (@lukeratto)


    love this clean theme –

    But how would I create a custom template, that replicates the theme when blog is set to homepage, on a new, to-be-created template?

    If I create a new page and set the template to custom, the post’s style are not longer rendering in full. The cool comment count, Title in body, author, category and lovely typography changes fairly dramatically.

    Desire – custom template front page, Latest post with custom divs under.

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

    I’m afraid the theme doesn’t include page templates. You would have to use a child theme to implement a custom template. Sorry!

    Best Regards,
    Dustin

    Thread Starter lukeratto

    (@lukeratto)

    Dustin,

    thanks — I was aware of that, but have failed at trying to carry over the same post exceprt style on a new template. Say my Reading settings were to have Posts on homepage, the style/layout that Serene theme displays, I want to replicate it exactly, but on a custom frontpage/template in my child theme.

    I’m familiar with css and but only a codex/stack overflow hack with php

    I created a new front page template in my functioning child theme

    <div id=”main-content”>
    <?php
    while ( have_posts() ) : the_post();
    get_template_part( ‘content’, get_post_format() );
    endwhile; ?>
    </div> <!– #main-content –>

    <?php
    get_template_part( ‘includes/navigation’, ‘index’ );
    else:
    get_template_part( ‘includes/no-results’, ‘index’ );
    endif;

    I plan on following the post with category & page containers – like widget blocks

    Thanks for you help and time responding.

    • This reply was modified 8 years ago by lukeratto.
    Thread Starter lukeratto

    (@lukeratto)

    when I added a child function file like so
    <?php
    function my_theme_enqueue_styles() {

    $parent_style = ‘parent-style’; // This is ‘serene-style’ for the Serene theme.

    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array( $parent_style ),
    wp_get_theme()->get(‘Version’)
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
    ?>

    anything I try to save results in a blank page

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Front Page’ is closed to new replies.