- This topic has 5 replies, 2 voices, and was last updated 8 years, 10 months ago by Theme Horse Support Team.
-
AuthorPosts
-
January 25, 2016 at 11:28 am #41785LauraParticipant
Hi,
i’ve tried to create a child theme with functions.php and style.css as it is recommended on the web.
normally, it should work, but with this theme it does not work.
i don’t want to use the @Import function.Could you please help me?
Thanks!
Laurafunctions.php:
<?php
/**
* Interface Pro child theme functions and definitions
*//*—————————————————————————————————————————*/
/* Include the parent theme style.css
/*—————————————————————————————————————————*/add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );}
style.css:
/*
Theme Name: Interface Pro Child
Theme URI:
Description: Interface Pro Child Theme
Author: Your Name
Author URI:
Template: interface-pro
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: Interface Pro Child Theme
*//*
You can start adding your own styles here. Use !important to overwrite styles if needed. */p {
font-size: 160px !important;
}January 26, 2016 at 11:50 am #41828Theme Horse Support TeamKeymasterHi Laura,
Just try this below code. In style.css add
/* Theme Name: Interface Pro Child Theme URI: https://www.themehorse.com/themes/interface-pro Author: Theme Horse Author URI: https://www.themehorse.com Description: Interface Pro is a Simple, Clean and Flat Responsive Retina Ready WordPress Theme. It is easily customizable with numerous theme options. Some of the highlighted options are two site layout (Narrow and Wide), 4 layouts for every post/page, 5 Page Templates, 8 widget areas, 6 custom widgets, featured slider to highlight your post/page, 10 social icons, top and bottom info bar to hightlight your contact/email/location and many more. Also has custom background, header, menu, favicon, CSS, webclip icon, and logo. Supports popular plugins like Breadcrumb NavXT, WP-PageNavi and Contact Form 7. It is also translation ready. Get free support at https://www.themehorse.com/support-forum/ and View beautiful demo site at https://www.themehorse.com/preview/interface-pro Version: 3.0.2 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: white, light, green, two-columns, left-sidebar, right-sidebar, fluid-layout, custom-menu, custom-background, custom-header, featured-images, full-width-template, theme-options, threaded-comments, translation-ready, sticky-post Text Domain: interface Template: interface-pro */
and under functions.php add below code
<?php add_action( 'wp_enqueue_scripts', 'interface_enqueue_styles' ); function interface_enqueue_styles() { wp_enqueue_style( 'interface', get_template_directory_uri() . '/style.css' ); } ?>
Thank you!
January 28, 2016 at 7:36 pm #41942LauraParticipantHi,
thanks for your answer, but it is still not working.January 29, 2016 at 5:48 am #41969Theme Horse Support TeamKeymasterHi Laura,
If you have both free and premium interface theme in your dashboard then remove the interface free theme. The above child theme must works well. If there is interface free theme then the child theme will work for interface free theme so you need to remove it.
Thank you!
January 29, 2016 at 2:51 pm #41992LauraParticipantHi, thank you!
It works fine now.Best Regards.
LauraFebruary 1, 2016 at 10:54 am #42082Theme Horse Support TeamKeymasterYou welcome Laura
Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.