Support » Theme: OnePress » child theme onepress

  • Hi, my child theme does not take into account all the css.
    Help me please
    ** activation theme
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );


Viewing 15 replies - 1 through 15 (of 15 total)
  • Theme Author FameThemes


    Hi Cabrero, let’s take a look at our sample child theme here :

    You can download and use it as a complete child theme 🙂

    Hello @cabrero

    Above code is enough to inherit the parent stylesheet in your child theme if you have done everything correctly i.e. place the above code in functions.php of the child theme .

    You also can take reference from below link for clear information.

    Child Theme

    And please let us know if you have any confusion .


    Thread Starter cabrero


    Thank you for your help.
    I used your child theme and I still have the same problem ;
    the home page does not load normally.

    • This reply was modified 5 years, 9 months ago by cabrero.
    Thread Starter cabrero


    … the sidebar and widgets either …

    Hi @cabrero,

    I’ve just checked your site and home page and sidebar look fine.

    Can you let me know what is exactly the issue?

    Thread Starter cabrero


    thank you for taking time for myself.
    When I use the child theme homepage are not the ones I created.
    Perhaps is it because of pluggins I use.

    Widget Logic
    SiteOrigin Widgets Bundle
    Page Builder par SiteOrigin

    Hi @cabrero,

    It isn’t due to the plugin. It causes from OnePress child theme. When active OnePress child theme, the theme_setting is different name, so some sections will be disappeared. In this case, you need re-create these section again.

    I hope that clears it up! Let me know if you have any questions.

    Or you can managed to copy the theme settings to the child theme by copying the serialized option string from theme_mods_onepress to theme_mods_onepress-child ( this is in phpMyadmin database). this seems to have worked.

    • This reply was modified 5 years, 9 months ago by congthien.
    Thread Starter cabrero


    thank you, it’s nice to help me.
    I have access to phpmyadmin but I don’t know where I found this information.
    thanks again

    Thread Starter cabrero


    That’s it I found to copy this information.
    and it works …. it’s great …
    Thank you very much…

    That sounds great 🙂

    Let us know if you need anything else!

    In case others are looking for the theme_mods_onepress and theme_mods_onepress-child values in phpMyAdmin, the values are in the wp_options table. This query will find them:

    SELECT * FROM wp_options where option_name like '%onepress%'

    Unfortunately, this fix is not working for me: even after copying the option_value in phpMyAdmin, after I refresh the web site with the child theme, the default option_value for theme_mods_onepress-child is reloaded:


    Any way to get this working without having to re-customize the entire theme?

    • This reply was modified 5 years, 3 months ago by mcbsys.
    • This reply was modified 5 years, 3 months ago by mcbsys.

    Don’t know why the copy/paste in phpMyAdmin didn’t work. Fortunately, I found the Child Theme Configurator plugin ( which had no trouble creating a child theme and copying the theme options.

    Has anyone run into trouble using the theme after installing the child theme? I can’t use the main features of the theme after installing the child. I just get a blank screen in the theme customizer.

    stlcardsfan, sounds like the “hooks” are not there to load the parent theme. Did you sue the Child Theme Configurator as I suggested just before your post?

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘child theme onepress’ is closed to new replies.