• cris81london

    (@cris81london)


    Hi there,

    I’m using is AccessPress Parallax.
    I’m very new to wordpress and php, and have been cracking my head with this for a whil.

    I’m trying to add a custom stylesheet to my theme, via the enqueue method in the functions.php file. I’ve tried many different solutions seen in a few tutorials, including here, I haven’t notice what I did wrong. Here is the last code I tried with no success:

    function admin_theme_style() {
    wp_enqueue_style(‘custom-admin-style’, get_template_directory_uri() . ‘/css/custom.css’);
    }
    add_action(‘admin_enqueue_scripts’, ‘admin_theme_style’);

    Where in the file should I include it? Any help will be very apreciated, as I’m nearly desperate with this!

    Thanks in advance!

    Cristiano

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Access Keys

    (@access-keys)

    Hi there,
    Have you created child theme for working so far ? If so you may add following code in the function.php file of child theme.

    function plx_other_themes(){
    wp_enqueue_style('plx-other-styles', get_stylesheet_directory_uri() . '/css/custom.css');
    }
    add_action('wp_enqueue_scripts', 'plx_other_themes');

    else if you’re working with the parent theme itself then you’ll have to add the following code inside of “accesspress_parallax_scripts()” function in functions.php file.
    wp_enqueue_style('plx-other-styles', get_template_directory_uri()
    Thanks,

    Thread Starter cris81london

    (@cris81london)

    Hi there,

    Thanks for your help, but it didn’t work.

    I’m working with the parent theme here], will keep trying.

    Thanks,
    Cristiano

    Theme Author Access Keys

    (@access-keys)

    Hi there,
    If you’re working with the parent theme itself then Please try adding following code inside of “accesspress_parallax_scripts()” function in functions.php file.
    wp_enqueue_style('plx-other-styles', get_template_directory_uri() . '/css/custom.css');
    Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom css on admin’ is closed to new replies.