Support » Theme: Foresight » how to set a child theme for Foresight?

  • Resolved hola12345678

    (@hola12345678)


    just tried to make a child theme for it manualy / automaticlly by plugin, dosen’t work either. especially when i want to make the layout selections.

    wordpress 5.4.1
    foresight 1.0.5

    can anybody here give some help?
    many thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author thingsym

    (@thingsym)

    Hi @hola12345678,

    Which plugin?

    Thread Starter hola12345678

    (@hola12345678)

    i tried ‘Child Theme Creator by Orbisius’, didn’t work.

    I like this theme, and want to keep some personal css settings even when updated with your newest version. Is it possible for you to add a child theme by default.

    Thanks for your nice work!

    Theme Author thingsym

    (@thingsym)

    Hi @hola12345678,

    The following modifications are required to inherit the stylesheet of the parent theme.

    Change the stylesheet link on line 23 in functions.php generated by ‘Child Theme Creator by Orbisius’ plugin.

    style.css -> /css/style.min.css

    
        wp_enqueue_style( $parent_style,
            get_template_directory_uri() . '/style.css',
            array(),
            wp_get_theme( $parent_base_dir ) ? wp_get_theme( $parent_base_dir )->get('Version') : ''
        );
    ...
    
    
        wp_enqueue_style( $parent_style,
            get_template_directory_uri() . '/css/style.min.css',
            array(),
            wp_get_theme( $parent_base_dir ) ? wp_get_theme( $parent_base_dir )->get('Version') : ''
        );
    
    • This reply was modified 8 months, 1 week ago by thingsym.

    Hi @hola12345678 ,

    I am the creator of Orbisius child theme creator?.
    how exactly didn’t work the plugin?
    Did you see an error or something?

    If there’s a bug let me know

    Thread Starter hola12345678

    (@hola12345678)

    @thingsym @lordspace

    Thanks for the quick response. problem soloved!!!
    have a good day guys.

    so the problem was loading style.min.css file ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘how to set a child theme for Foresight?’ is closed to new replies.