Skip to content

Instantly share code, notes, and snippets.

@sudipbd
Last active November 19, 2016 08:06
Show Gist options
  • Save sudipbd/112a92f9e229c3809d211ce4fc8584c2 to your computer and use it in GitHub Desktop.
Save sudipbd/112a92f9e229c3809d211ce4fc8584c2 to your computer and use it in GitHub Desktop.
WordPress basic functions.php layout
<?php
//styles and scripts
require_once ('inc/stsc.php');
// menus
require_once ('inc/menus.php');
//custom menu
require_once ('inc/custom.php');
//theme support
require_once('inc/supports.php');
// option tree setup for theme option
add_filter( 'ot_show_pages', '__return_false' );
add_filter( 'ot_show_new_layout', '__return_false' );
add_filter( 'ot_theme_mode', '__return_true' );
include_once( 'option-tree/ot-loader.php' );
include_once( 'inc/ah-theme-options.php' );
//Custom Meta Box
include_once('inc/ah-meta-boxes.php');
//adding body class for browser and device
include_once('inc/wpclass.php')
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment