• Hi all,

    Having a bit of trouble with a child theme that I’m working on. I’ve enqueued the parent stylesheet like so…

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

    .. and that works fine. But the theme has some ‘theme options’ which have an associated “custom-styles” css document. The theme options all seem to work and respond correctly (turning on/off various features etc), but any style/CSS stuff doesn’t work. It takes no effect. For example, one of the options is to adjust the header height. If I change that, I think it goes into the “custom-styles” css document. But then nothing. It’s being ignored.

    Will I need to enqueue this document as well, since the theme doesn’t seem to be looking for it? If so I’d appreciate some guidance on how I do this.

    Apologies if any of this is unclear. But do let me know what other information I need to provide.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • what other information I need to provide.

    for example, the name and download link of your theme.

    Thread Starter hyowgo

    (@hyowgo)

    Sorry! It’s actually a premium theme called Fitness. I will be contacting their premium support area shortly; I just wondered whether there were any well-known, general rules for dealing with theme option related stylesheets in a child theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme Options 'custom-styles.css' being ignored’ is closed to new replies.