• Mindiscover

    (@mindiscover)


    Hello,

    I made a child theme with Orbisius Child Theme Creator plugin.
    The function.php was empty. and from what I saw at WordPress, I put:

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

    My css.stylesheet was made by the plugin. I just added some commands..

    /*
    Theme Name: Adventure Tours Child 01
    Theme URI:
    Description: Child 01 theme for the Adventure Tours theme
    Author: <a href="https://themeforest.net/user/themedelight">ThemeDelight</a>
    Author URI:
    Template: adventure-tours
    Version: 1.1.1
    */
    
    /* Generated by Orbisius Child Theme Creator (https://club.orbisius.com/products/wordpress-plugins/orbisius-child-theme-creator/) on Sat, 28 Nov 2015 18:26:46 +0000 */ 
    
    @import url('../adventure-tours/style.css');
    
    .main-nav > li:last-child {
        margin-right: 25px !important ;
    }
    
    .price-decoration--without-price .price-decoration__label { display:none !important}
    
    .slider {
        margin-bottom: -79px !important;
    }

    The style is not changing… I think i didn’t call it on function.php right…
    What Is wrong here?

Viewing 15 replies - 1 through 15 (of 16 total)
  • stephencottontail

    (@stephencottontail)

    Can you post a link to your site with the child theme active? Also, since you’re using @import from the plugin, you don’t need to put anything in functions.php.

    Thread Starter Mindiscover

    (@mindiscover)

    stephencottontail

    (@stephencottontail)

    Is your child theme active right now? I don’t see your child theme’s stylesheet on your site.

    Thread Starter Mindiscover

    (@mindiscover)

    Yes it is active

    stephencottontail

    (@stephencottontail)

    I don’t see your child theme’s stylesheet. What is the exact name of the file that contains this code that you posted in your original post:

    /*
    Theme Name: Adventure Tours Child 01
    Theme URI:
    Description: Child 01 theme for the Adventure Tours theme
    Author: <a href="https://themeforest.net/user/themedelight">ThemeDelight</a>
    Author URI:
    Template: adventure-tours
    Version: 1.1.1
    */
    
    /* Generated by Orbisius Child Theme Creator (https://club.orbisius.com/products/wordpress-plugins/orbisius-child-theme-creator/) on Sat, 28 Nov 2015 18:26:46 +0000 */ 
    
    @import url('../adventure-tours/style.css');
    
    .main-nav > li:last-child {
        margin-right: 25px !important ;
    }
    
    .price-decoration--without-price .price-decoration__label { display:none !important}
    
    .slider {
        margin-bottom: -79px !important;
    }
    Thread Starter Mindiscover

    (@mindiscover)

    The exact name is: style.css

    stephencottontail

    (@stephencottontail)

    I don’t see a file by that name being loaded on your site. Could your host be caching your site or are you using a caching plugin?

    Thread Starter Mindiscover

    (@mindiscover)

    No.. This is weird /:
    What sould I do?

    Thread Starter Mindiscover

    (@mindiscover)

    I had notice that the theme URI line
    in my css.style of the child theme is empty.

    Can it be the cause to that problem?

    stephencottontail

    (@stephencottontail)

    No, that doesn’t have anything to do with it. Can you double-check that the child theme is active? If you go to Dashboard > Appearance > Themes, it should be named Adventure Tours Child 01.

    Thread Starter Mindiscover

    (@mindiscover)

    I checked again – It is active.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Is there any way you could contact your theme author about this? This isn’t a CSS problem and it requires knowledge of how your theme works.

    Thread Starter Mindiscover

    (@mindiscover)

    Yes, I’ll do it also. Problem is it’s taken them 3 days to reply..

    I need it ASAP for a project…

    Is there any chance that someone here can help me with that?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Not really since we have to pay for the theme and then spend an hour understanding how the theme works. What usually happens when people ask for support with commercial themes is the question isn’t answered – which is expected.

    Thread Starter Mindiscover

    (@mindiscover)

    I can edit the CSS through the CSS editor on the dashboard (theme option)

    If I am editing it through there, is it changing the current theme? (child theme) or the origin?

    Let’s say I am going to edit the origin css.stylsheet…

    When there is a theme update, it’s updating automatically? or I can choose not to.

    [Please don’t bump]

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Child theme css stylesheet doesn't react’ is closed to new replies.