Sindbad~EG File Manager

Current Path : /home/infinitibizsol/www.erofmesquite.com/wp-content/themes/cura-child/
Upload File :
Current File : /home/infinitibizsol/www.erofmesquite.com/wp-content/themes/cura-child/functions.php

<?php
	
function wgl_child_scripts() {
	wp_enqueue_style( 'wgl-parent-style', get_template_directory_uri(). '/style.css' );
}
add_action( 'wp_enqueue_scripts', 'wgl_child_scripts' );

/**
 * Your code here.
 *
 */
function add_custom_body_class( $classes ) {
    if ( is_home() || is_category() ) {
        $classes[] = 'wraper_inner_banner_main > .container';
    }
    return $classes;
}
add_filter( 'body_class', 'add_custom_body_class' );

function add_custom_css() {
	if ( is_home() || is_category() || is_search()) {
    ?>
    <style>
        .wraper_inner_banner_main > .container {
			padding-top: 50px !important;
			padding-bottom: 10px !important;
		}
    </style>
    <?php
	}
}
add_action( 'wp_body_open', 'add_custom_css' );


function child_siderbars() {

	// ADD LEFT SIDEBAR.
	register_sidebar(
		array(
			'name'          => esc_html__( 'Left Sidebar', 'cura' ),
			'id'            => 'sidebar-left',
			'description'   => esc_html__( 'Add widgets here.', 'cura' ),
			'before_widget' => '<section id="%1$s" class="widget %2$s">',
			'after_widget'  => '</section>',
			'before_title'  => '<h5 class="widget-title">',
			'after_title'   => '</h5>',
		)
	);
	// ADD RIGHT SIDEBAR.
	register_sidebar(
		array(
			'name'          => esc_html__( 'Right Sidebar', 'cura' ),
			'id'            => 'sidebar-right',
			'description'   => esc_html__( 'Add widgets here.', 'cura' ),
			'before_widget' => '<section id="%1$s" class="widget %2$s">',
			'after_widget'  => '</section>',
			'before_title'  => '<h5 class="widget-title">',
			'after_title'   => '</h5>',
		)
	);
}
add_action( 'widgets_init', 'child_siderbars' );

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists