• Resolved Kostasyr

    (@kostasyr)


    Hello

    I am new to wordpress but i can recognize that this theme is very good. Nice work.

    I need help about an issue i have with the latest post. i make a child theme and now i can’t see the latest post in the top of the site, only a rectangle with rounded corners. i am sure that i have done a mistake but i can’t find it.

    in style.css i put this code:
    /*
    Theme Name: ProfitMag Child
    Template: profitmag
    */

    in functions.php i put this:
    <?php
    /**
    * Enqueues child theme stylesheet, loading first the parent theme stylesheet.
    */
    function themify_custom_enqueue_child_theme_styles() {
    wp_enqueue_style( ‘parent-theme-css’, get_template_directory_uri() . ‘/style.css’ );
    }
    add_action( ‘wp_enqueue_scripts’, ‘themify_custom_enqueue_child_theme_styles’ );
    ?>

    In the folder of profitmag-child i have style.css and functions.php, do i have to put and other files from parent theme?

    When i enable the parent theme all are ok.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Kostasyr

    (@kostasyr)

    I haven’t manage to fix this, if anyone can help my site is https://www.mobile-experts.gr

    Theme Author Rigorous Themes

    (@wpgaint)

    Hi,
    We recommend you to see here.
    Probably you miss to enqueue the child theme stylesheet.

    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array('parent-style')
        );
    }

    Hope, it will helps.

    Cheers!!!

    Thread Starter Kostasyr

    (@kostasyr)

    Thank you very much.

    It is ok now. Great support!!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Latest post problem with js in child theme’ is closed to new replies.