custom page template

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

Status: not resolved


  • This topic has 8 replies, 4 voices, and was last updated 6 y, 8 mo by  Max.
Viewing 8 reply threads
  • Author
    • #8157

      Hi Jacob,

      I am want to have a home page starting with a full width background image, followed by the carousel, then recent blogs.

      The problem I have is that I don’t get the recent blog posts on the home page and the same page shows on the blog page. I have set front page to => “home” and blog to => “blog”

      I am RoR developer but completely new at modifying WordPress themes. I should easily understand any direction you can give. Thanks!

    • #8158

      Sorry, here is the properly formatted code.

       * Template Name: Home
       * This is the template that displays the home page.
       * @package wpthms
      <!-- Header BEGIN -->
       do_action( 'yt_start_the_awesomeness' );
        * The Header for our theme.
        * Displays all of the <head> section and everything up till <div id="main">
        * @package wpthms
       ?><!DOCTYPE html>
       <!--[if IE 8 ]><html class="ie ie8" <?php language_attributes(); ?>> <![endif]-->
       <!--[if (gte IE 9)|!(IE)]><!--><html <?php language_attributes(); ?>> <!--<![endif]-->
       <!--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">-->
       <meta charset="<?php bloginfo( 'charset' ); ?>">
       <title><?php wp_title(); ?></title>
       <link rel="profile" href="">
       <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
       <?php wp_head(); ?>
       <!--[if lt IE 9]>
       	<script src="<?php echo esc_url( get_template_directory_uri() . '/includes/js/html5shiv.js' );?>"></script>
       	<script src="<?php echo esc_url( get_template_directory_uri() . '/includes/js/respond.min.js' );?>"></script>
       <body <?php body_class(); ?>>
       <!--[if lt IE 9]>
       <div id="yt-ancient-browser-notification">
       	<div class="container">
       		<?php echo '<p>Oops! Your browser is <strong><em>ancient!</em></strong> :( - <a href="http://' . '" target="_blank">Upgrade to a different browser</a> or <a href="http://' . '">install Google Chrome Frame</a> to experience this site.</p>';?>
       <?php yt_before_wrapper();?>
       <div id="page" <?php yt_section_classes( 'hfeed site', 'wrapper' );?>>
       <div class="inner-wrapper">
       <?php yt_wrapper_start(); ?> 
       	<?php yt_before_header(); ?>
       	<header id="masthead" <?php yt_section_classes( 'site-header', 'header' );?> role="banner">
       	</header><!-- #masthead -->
       	<!-- CUSTOM HERO -->
      	<section id="hero">
      		<div class="container">
      			<div class="row">
      				<div class="col-sm-4 col-sm-offset-4">
      					<img src="http://localhost:8888/">
      					<h3 class="text-center">Creating thrilling sex lives for singles and couple since 1995.</h3>
      					<a class="center-block text-center" href="#"><img src="http://localhost:8888/">
      						<p>Watch the Video</p></a>
      	<h1 class="text-center widget-title">The Relationship Curriculum</h1>
      	<!-- CUSTOM HERO END -->
       	<?php yt_after_header(); //Call Action Hooks?>
       	<div id="main" <?php yt_section_classes( 'site-main', 'main' );?>>
       		<?php yt_main_start(); ?>
      <!-- Header END -->
      	<?php yt_before_primary(); ?>
      	<div id="primary" <?php yt_section_classes( 'content-area', 'primary' );?>>
      		<?php yt_primary_start(); ?>
      		<main id="content" <?php yt_section_classes( 'site-content', 'content' );?> role="main">
      			<?php yt_before_loop(); ?>
      			<?php while ( have_posts() ) : the_post(); ?>
      				<?php yt_loop_start(); ?>
      				<?php get_template_part( 'content', 'page' ); ?>
      					// If comments are open or we have at least one comment, load up the comment template
      					if ( ( comments_open() || '0' != get_comments_number() ) && yt_get_options( 'site_page_comment_mode' ) )
      				<?php yt_loop_end(); ?>
      			<?php endwhile; // end of the loop. ?>
      			<?php yt_after_loop(); ?>
      		</main><!-- #content -->
      		<?php yt_primary_end(); ?>
      	</div><!-- #primary -->
      	<?php yt_after_primary(); ?>
      	if( apply_filters( 'yt_site_secondary_content_condition', ( 'fullwidth' !== yt_site_get_current_page_layout() ) ) ) 
      <?php get_footer(); ?>

      Also a screenshot for your view

    • #8163


      After working with the theme for a few hours my request for help is as follows:

      – How can I make a home page template like this?
      homepage layout example

      I would like to have two blog layouts on one site. I am using the default style for the blog page.

      I would like to have a modified (just adding a full-width, no-container, div) above the carousel for the home page.

      Home page = modified carousel layout
      Blog = is using default layout ** I do not need help here **

      I would greatly appreciate your help. Thanks

    • #8184


      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #8216

      Thank you for the reply, it worked!

      My final questions are:

      1) How can I have two pages with different blog post layouts? I want the “Carousel Header” for the Front page and the “Default(Static Posts)” for the Posts page.

      If I set one layout: Theme Options -> Hero Banner -> Layout Type -> Carousel, it will set both pages to Carousel.

      2) How can I also have blog posts on the Front Page while Settings > Reading > Posts page is different?

      I would greatly appreciate the help. Thank you..

      I am currently modifying the template pages, so please, feel free to direct me to a specific theme file and line of code to change. I can easily do what you ask.

    • #8221


      I’m also interested in setting up the home page in this way. Is there a way to do this via a page builder? Is there a page builder option with this theme and a shortcut to the shortcodes used in the demo? thx

    • #8233


      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #8248

      Thank you Maxxi! I now have both blog layouts.

      The problem is that using the provided shortcode for the “posts list” gives me different styling than the blog page posts. I see large blurry images (thumbnails) and no blog post excerpt. Can you please help correct the output of the “post list” shortcode. I really appreciate everyone’s help. Thanks.

    • #8258


      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

Viewing 8 reply threads
  • You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

© Copyright 2021 by All Rights Reserved.