Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix function.php adding style-mobile.css child theme

Discussion in 'Misc WordPress Requests' started by marcinstanczak, Oct 30, 2017.

  1. marcinstanczak

    Guest

    function.php adding style-mobile.css child theme, by marcinstanczak

    Hello, I have a problem with style-mobile.css it doesnt load
    I dont know how to make it, maybe someone will help me.
    I use plugin to create child theme and I have function.php like that:

    <?php
    // Exit if accessed directly
    if ( !defined( 'ABSPATH' ) ) exit;

    // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED - Do not modify or remove comment markers above or below:

    if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):
    function chld_thm_cfg_parent_css() {
    wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array( 'tmnf-custom-style' ) );
    }
    endif;
    add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css', 10 );

    // END ENQUEUE PARENT ACTION


    I need to add style-mobile.css to that but I dont know how…

    Please help!

    function.php adding style-mobile.css child theme
     
    #1

Share This Page

Web Hosting