This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Do NOT include the opening php tag, only copy the code below | |
//* Register custom post type example | |
add_action( 'init', 'portfolio_post_type' ); | |
function portfolio_post_type() { | |
register_post_type( 'portfolio', array( | |
'labels' => array( | |
'name' => __( 'Portfolio', 'bizznis-child' ), | |
'singular_name' => __( 'Portfolio', 'bizznis-child' ), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Template Name: Landing | |
//* Force full width content layout | |
add_filter( 'bizznis_pre_get_option_site_layout', 'bizznis_return_landing_layout' ); | |
function bizznis_return_landing_layout() { | |
return 'full-width-content'; | |
} | |
//* Remove header and footer for this page template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: Bizznis Child | |
Theme URI: https://github.com/bizzthemes/bizznis-child/ | |
Description: This is child theme example that was created to show developers how to make their own child themes for Bizznis. | |
License: GPL version 3 | |
License URI: http://gplv3.fsf.org/ | |
Version: 1.0 | |
Author: BizzThemes | |
Author URI: http://bizzthemes.com/ | |
Tags: light, gray, white, one-column, two-columns, three-columns, right-sidebar, left-sidebar, responsive-layout, fluid-layout, custom-menu, featured-images, full-width-template, microformats, rtl-language-support, sticky-post, theme-options, translation-ready |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* This file calls the init.php file inside parent Bizznis theme (do not remove) | |
load_template( get_template_directory() . '/lib/init.php' ); | |
//* Child theme (do not remove) | |
define( 'CHILD_THEME_NAME', __( 'Bizznis Child Theme', 'bizznis-child' ) ); | |
define( 'CHILD_THEME_URL', 'https://github.com/bizzthemes/bizznis-child/' ); | |
define( 'CHILD_THEME_VERSION', '1.0' ); | |
//* Set Localization (do not remove) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en-US"> | |
<!-- DOCUMENT HEAD --> | |
<head> | |
<title></title> | |
<meta /> | |
<link /> | |
<!-- HEADER SCRIPTS --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Do NOT include the opening php tag, only copy the code below | |
//* Register widget area before each single post entry | |
bizznis_register_widget_area( array( | |
'id' => 'before-entry', | |
'name' => __( 'Before Entry', 'bizznis-child' ), | |
'description' => __( 'This is a widget area that can be placed before the post entry', 'bizznis-child' ), | |
) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Do NOT include the opening php tag, only copy the code below | |
//* Display sidebar before each single post entry | |
add_action( 'bizznis_before_entry', 'custom_after_entry_widget' ); | |
function custom_after_entry_widget() { | |
if ( is_singular( 'post' ) ) { | |
# function that returns sidebar widgets for the registered area | |
bizznis_widget_area( 'before-entry', array( | |
'before' => '<div class="before-entry widget-area">', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Do NOT include the opening php tag, only copy the code below | |
//* Add new featured image sizes | |
add_image_size( 'home-featured', 350, 300, true ); | |
add_image_size( 'footer-widget', 255, 200, true ); |
OlderNewer