php Wordpress Genesis front-page.php文件

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php Wordpress Genesis front-page.php文件相关的知识,希望对你有一定的参考价值。

<?php

/**

 * This file adds the Landing template to the News Pro Theme.

 *

 * @author StudioPress

 * @package News Pro

 * @subpackage Customizations

 */


/*

Template Name: Landing

*/


// Add custom body class to the head

add_filter( 'body_class', 'news_add_body_class' );

function news_add_body_class( $classes ) {


   $classes[] = 'news-pro-landing';

   return $classes;

}


//* Force full width content layout

add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );





//* Remove breadcrumbs

remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );


//* Remove site footer widgets

remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );


//* Remove site footer elements

remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );

remove_action( 'genesis_footer', 'genesis_do_footer' );

remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );


//* Run the Genesis loop

genesis();

           

以上是关于php Wordpress Genesis front-page.php文件的主要内容,如果未能解决你的问题,请参考以下文章