November 28, 2015 at 1:00 pm
#40050
Theme Horse Support Team
Keymaster
Hi Pavel,
Its better to create your own forum topic rather than posting on others forum topic. Because other user also get notified if post on their forum topic.
Just create a folder name interface-pro-child inside wp-content-> themes. You need to create two file.
Style.css and
functions.php
Under style.css add this below code
/*
Theme Name: Interface Pro Child
Theme URI: http://example.com/twenty-fifteen-child/
Description: Interface Pro Child Theme
Author: Theme Horse
Author URI: http://example.com
Template: interface-pro
Version: 1.0.0
Text Domain: twenty-fifteen-child
*/
@import url("../interface-pro/style.css");
and under functions.php add this below code
<?php
// Unhook default Thematic functions
function unhook_thematic_functions() {
// Don't forget the position number if the original function has one
remove_action( 'wp_enqueue_scripts', 'interface_scripts_styles_method' );
}
add_action('init','unhook_thematic_functions'); // removes the header content by using hook interface_header
add_action( 'wp_enqueue_scripts', 'interface_scripts_child_styles_method' );
function interface_scripts_child_styles_method() {
global $interface_theme_default, $interface_theme_setting_value,$interface_default;
$options = $interface_theme_default;
$options_setting = $interface_theme_setting_value;
/**
* Loads our main stylesheet.
*/
// Load our main stylesheet.
wp_enqueue_style( 'interface_style', get_stylesheet_uri());
wp_style_add_data( 'interface-ie', 'conditional', 'lt IE 9' );
if ('on' == $options['site_design']) {
//Css for responsive design
wp_enqueue_style( 'interface-responsive', get_template_directory_uri() . '/css/responsive.css');
}
/**
* Adds JavaScript to pages with the comment form to support
* sites with threaded comments (when in use).
*/
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
/**
* Register JQuery cycle js file for slider.
* Register Jquery fancybox js and css file for fancybox effect.
*/
wp_enqueue_script( 'jquery_cycle', INTERFACE_JS_URL . '/jquery.cycle.all.min.js', array( 'jquery' ), '2.9999.5', true );
wp_register_script( 'jquery_fancybox', INTERFACE_JS_URL . '/jquery.fancybox-1.3.4.pack.js', array('jquery'), '1.3.4', true );
wp_enqueue_style( 'jquery_fancybox_style', INTERFACE_CSS_URL . '/jquery.fancybox-1.3.4.css', true);
$interface_google_font_loads = array();
if( $interface_default['interface_general_typography'] != $options_setting[ 'interface_general_typography' ] ) :
array_push( $interface_google_font_loads,$options_setting[ 'interface_general_typography' ] );
endif;
if( $interface_default['interface_navigation'] != $options_setting[ 'interface_navigation' ] ) :
array_push( $interface_google_font_loads,$options_setting[ 'interface_navigation' ] );
endif;
if( $interface_default['interface_title'] != $options_setting[ 'interface_title' ] ) :
array_push( $interface_google_font_loads,$options_setting[ 'interface_title' ] );
endif;
if( 'PT Sans' == $options_setting[ 'interface_general_typography' ] || 'PT Sans' == $options_setting[ 'interface_navigation' ] ):
array_push( $interface_google_font_loads,'PT+Sans');
endif;
$interface_google_font_load = implode("|", $interface_google_font_loads);
wp_register_style( 'interface_google_font', 'http://fonts.googleapis.com/css?family='.$interface_google_font_load .':400,700italic,700,400,800italic&subset=latin,latin-ext');
wp_enqueue_style( 'interface_google_font' );
/**
* Enqueue Slider setup js file.
* Enqueue Fancy Box setup js and css file.
*/
if( 'revolution-slider' != $options[ 'slider_type' ] && '0' == $options[ 'disable_slider' ] ) {
if ( ( 'slider-on-everypage' == $options[ 'slider_status' ] ) || ( ( is_home() || is_front_page() ) && 'slider-on-homepage' == $options[ 'slider_status' ] ) ) {
wp_enqueue_script( 'interface_slider', INTERFACE_JS_URL . '/interface-slider-setting.js', array( 'jquery_cycle' ), false, true );
}
}
wp_enqueue_script( 'interface_fancybox_setup', INTERFACE_JS_URL . '/interface-custom-fancybox-script.js', array('jquery_fancybox'), false , true);
wp_enqueue_script( 'backtotop', INTERFACE_JS_URL. '/backtotop.js', array( 'jquery' ) );
wp_enqueue_script( 'scripts', INTERFACE_JS_URL. '/scripts.js', array('jquery') );
wp_enqueue_script( 'jquery_custom', INTERFACE_JS_URL. '/jquery.custom.js', array('jquery') );
wp_enqueue_script('easing', INTERFACE_JS_URL . '/jquery.easing.1.3.js', array('jquery'), true);
wp_enqueue_script('quicksand', INTERFACE_JS_URL . '/jquery.quicksand.js', array('jquery'), true);
wp_enqueue_style( 'jquery_fancybox_style' );
}
/****************************************************************************************/
?>
Hope this may help to solve your problem
Thank you!