badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Child Theme with functions.php and style.css

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #41785
    Laura
    Participant

    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!
    Laura

    functions.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;
    }

    #41828

    Hi 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!

    #41942
    Laura
    Participant

    Hi,
    thanks for your answer, but it is still not working.

    #41969

    Hi 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!

    #41992
    Laura
    Participant

    Hi, thank you!
    It works fine now.

    Best Regards.
    Laura

    #42082

    You welcome Laura

    Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.