custom page template

This topic is: Not resolved

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

Tagged: 

This topic contains 8 replies, has 4 voices, and was last updated by  Max 1 year, 8 months ago.

  • Author
    Posts
  • #8157

    idealhomesec
    Member
    Post count: 8

    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!

    • This topic was modified 1 year, 8 months ago by  idealhomesec.
    • This topic was modified 1 year, 8 months ago by  idealhomesec.
  • #8158

    idealhomesec
    Member
    Post count: 8

    Sorry, here is the properly formatted code.

    
    <?php
    /**
     * Template Name: Home
     *
     * This is the template that displays the home page.
     *
     * @package yeahthemes
     */
    ?>
    
    <!-- Header BEGIN -->
     <?php
     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 yeahthemes
      */
     ?><!DOCTYPE html>
     <!--[if IE 8 ]><html class="ie ie8" <?php language_attributes(); ?>> <![endif]-->
     <!--[if (gte IE 9)|!(IE)]><!--><html <?php language_attributes(); ?>> <!--<![endif]-->
     <head>
     <!--<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="http://gmpg.org/xfn/11">
     <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>
     <![endif]-->
     </head>
    
     <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://' . 'browsehappy.com/" target="_blank">Upgrade to a different browser</a> or <a href="http://' . 'www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p>';?>
     	</div>
     </div>
     <![endif]-->
    
     <?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">
     	
     		<?php 
     			
     			yt_header_start(); 
     			
     			yt_inside_header(); 
     			
     			yt_header_end();
     		?>
     		
     	</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/localwp.com/wp-content/uploads/2015/03/edt-logo.png">
    					<h3 class="text-center">Creating thrilling sex lives for singles and couple since 1995.</h3>
    					<br><br>
    					<a class="center-block text-center" href="#"><img src="http://localhost:8888/localwp.com/wp-content/uploads/2015/03/video-play-32.png">
    						<p>Watch the Video</p></a>
    				</div>
    			</div>
    		</div>
    	</section>
    
    	<hr>
    	<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' ); ?>
    
    				<?php
    					// 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' ) )
    						comments_template();
    				?>
    				
    				<?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(); ?>
    	
    	<?php 
    	if( apply_filters( 'yt_site_secondary_content_condition', ( 'fullwidth' !== yt_site_get_current_page_layout() ) ) ) 
    		get_sidebar();
    	?>
    	
    <?php get_footer(); ?>
    

    Also a screenshot for your view
    http://localhost:8888/localwp.com/wp-content/uploads/2015/03/home.png

  • #8163

    idealhomesec
    Member
    Post count: 8

    Okay,

    ====================================
    PLEASE DISREGARD ALL PREVIOUS POSTS!
    ====================================
    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

    Jacob
    Staff
    Post count: 2323

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

    Login | Register | Forgot Password?

  • #8216

    idealhomesec
    Member
    Post count: 8

    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..

    =====
    Note:
    =====
    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.

    • This reply was modified 1 year, 8 months ago by  idealhomesec.
    • This reply was modified 1 year, 8 months ago by  idealhomesec.
  • #8221

    mikexavier
    Member
    Post count: 1

    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

    Max
    Staff
    Post count: 3150

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

    Login | Register | Forgot Password?

  • #8248

    idealhomesec
    Member
    Post count: 8

    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

    Max
    Staff
    Post count: 3150

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

    Login | Register | Forgot Password?

You must be logged in to reply to this topic.

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