File Editor
Directories:
.. (Back)
assets
customizer
framework
frontpage
languages
lib
template_parts
Files:
404.php
author.php
category.php
comments.php
footer.php
functions.php
header.php
index.php
page.php
readme.txt
search.php
sidebar.php
single.php
style.css
style_core.css
tag.php
woocommerce.php
Create New File
Create
Edit File: functions.php
<?php /** * The MAIN FUNCTIONS FILE for OPTIMIZER * * Stores all the Function of the template. * * @package Optimizer * * @since Optimizer 1.0 */ //**************Optimizer Golbal******************// /*CHECK IF optimizer row exist in the wp_options table. Needed for Redux Conversion process*/ $optimizerdb = get_option( 'optimizer' ); //**************optimizer SETUP******************// function optimizer_setup() { //add_theme_support( 'custom-header' ); add_theme_support( 'title-tag' ); //WP 4.1 Site Title add_theme_support( 'woocommerce' ); //Woocommerce Support add_theme_support('automatic-feed-links'); //RSS FEED LINK add_theme_support( 'post-thumbnails' ); //Post Thumbnail //Custom Background add_theme_support( 'custom-background', array( 'default-color' => 'f7f7f7') ); //Make theme available for translation load_theme_textdomain('optimizer', get_template_directory() . '/languages/'); //Custom Thumbnail Size add_image_size( 'optimizer_thumb', 400, 270, true ); /*(cropped)*/ //Register Menus register_nav_menus( array( 'primary' => __( 'Header Navigation', 'optimizer' ), 'footer' => __( 'Footer Navigation', 'optimizer' ), ) ); } add_action( 'after_setup_theme', 'optimizer_setup' ); //**************optimizer FUNCTIONS******************// require(get_template_directory() . '/framework/core-functions.php'); //Include Optimizer Framework Core Functions require(get_template_directory() . '/lib/functions/core.php'); //Include Core Functions require(get_template_directory() . '/lib/functions/enqueue.php'); //Include Enqueue CSS/JS Scripts require(get_template_directory() . '/lib/functions/admin.php'); //Include Admin Functions (admin) require(get_template_directory() . '/lib/functions/woocommerce.php'); //Include Woocommerce Functions require(get_template_directory() . '/lib/functions/defaults.php'); require(get_template_directory() . '/customizer/customizer.php'); require(get_template_directory() . '/lib/functions/converter.php'); require(get_template_directory() . '/lib/includes/google_fonts.php'); //WIDGETS require(get_template_directory() . '/frontpage/widgets/init.php'); require(get_template_directory() . '/framework/core-posts.php'); require(get_template_directory() . '/framework/core-pagination.php');
Save Changes
Rename File
Rename