Results 1 to 3 of 3

Thread: CSS import

  1. #1
    Thread Starter
    Member davideus's Avatar
    Join Date
    Sep 2013
    Location
    Georgia
    Posts
    63
    Thanks
    5
    Thanked 0 Times in 0 Posts

    CSS import

    Is there a problem if i delete import lines from style.css

    Code:
    @import url("../classipress/style.css");
    @import url("../classipress-headline-red/styles/classipress-headline-red.css");
    and enqueue them through functions.php

    Code:
    function dequeue_styles() {
        wp_deregister_style( 'classipress-style' );
        wp_dequeue_style( 'classipress-style' );
    }
    add_action( 'wp_print_styles', 'dequeue_styles' );
    
    function parent_styles()
    {
    wp_register_style( 'classipress',
    get_template_directory_uri() . '/style.css'
    );
    wp_enqueue_style( 'classipress' );
    }
    add_action('wp_enqueue_scripts', 'parent_styles');
    
    function child_styles()
    {
    wp_register_style( 'classipress-headline-red',
    get_stylesheet_directory_uri() . '/styles/classipress-headline-red.css'
    );
    wp_enqueue_style( 'classipress-headline-red' );
    }
    add_action('wp_enqueue_scripts', 'child_styles');
    am i doing it right way?

  2. #2
    tinygiantstudios's Avatar
    Join Date
    Jan 2011
    Posts
    1,607
    Thanks
    31
    Thanked 157 Times in 148 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!


  3. #3
    Thread Starter
    Member davideus's Avatar
    Join Date
    Sep 2013
    Location
    Georgia
    Posts
    63
    Thanks
    5
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Cannot use Export/Import/Clear Settings to import
    By bigtopmultimedia in forum Advanced Custom Fields
    Replies: 1
    Last Post: August 26th, 2013, 07:19 PM
  2. [TUTORIAL] Csv import
    By mrHAT in forum JobRoller General Discussion
    Replies: 7
    Last Post: July 24th, 2013, 10:14 PM
  3. CSV import
    By citilife in forum Help Using Vantage (Legacy)
    Replies: 7
    Last Post: November 20th, 2012, 09:24 AM
  4. New Site - Import Car Community - Import Meet
    By 9ks2k in forum Showcase & Feedback
    Replies: 4
    Last Post: April 2nd, 2011, 01:31 PM