• Resolved johannes999

    (@johannes999)


    hello,
    I had entered this code in function.php:

    
    **
     * Register style sheet.
     */
    function auto_repair_stylesheets() {
        wp_register_style( 'style.css',  get_template_directory_uri() . '/style.css', array(), null, 'all' );
        wp_register_style( 'app.css',  get_template_directory_uri() . '/app.css', array(), null, 'all' );
        wp_enqueue_style( 'style.css' );
        wp_enqueue_style( 'app.css' );
      
    }
    add_action( 'wp_enqueue_scripts', 'auto_repair_stylesheets' );
    
    

    it was working for a while but now I see my theme is not recognizing this folders anu moer (style.ccs and app.css).

    how it comes that this code was working and now is not working ?
    thanks
    johannes

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What is the HTML output of those styles? I.e. the <link> tags.

    Thread Starter johannes999

    (@johannes999)

    thanks ,
    I have this code on my homepage (in dashboard):

    
    <div class="expanded row">
    
    <div class="section1 small-7 column">
    
    </div>
    
    <div class="section2 small-3 column">
    
    </div>
    </div>
    

    and this is the url:https://webdesignleren.net/

    Thread Starter johannes999

    (@johannes999)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I checked your site and the ‘style.css’ and ‘app.css’ files are loading fine. I don’t understand your issue.

    Thread Starter johannes999

    (@johannes999)

    when I write any code in style.ccs or in app.css is not been validated on the site.
    for example I wrote this code in css :

    
    .section1  {
    
    border:1px solid green;
    
    height:10rem;
    
    }
    
    .section2  {
    height:10rem;
    
    border:1px solid green;
    
    }
    
    .site-footer  {
    border:1px solid black;
    }
    

    it is not recognizing any css code.
    I had once such a problem I deleted the theme and uploaded again and the problem was solved.
    johannes

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I checked the first style you’ve written above (.section1) and it works as well: https://imgur.com/a/fdGsx

    Are you sure you’ve cleared your cache?

    Thread Starter johannes999

    (@johannes999)

    thanks ,
    I have cleared the cache and the problem is solved.
    I have also learned from you how to detect ccs. folders if they are loaded or not!
    it is under source tab in inspect elements.
    thanks again.
    johannes

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘css.folders is not been recognized by theme anymore!’ is closed to new replies.