Title: Enqueue CSS to a third-party plugin template
Last modified: September 25, 2021

---

# Enqueue CSS to a third-party plugin template

 *  [dmag55](https://wordpress.org/support/users/dmag55/)
 * (@dmag55)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/enqueue-css-to-a-third-party-plugin-template/)
 * The frontend _Dashboard_ page on my website that uses my custom theme is displayed
   by a third-party plugin. The plugin supports its templates override, so I replaced
   the plugin’s header template with my template’s header using `get_header()` function,
   and the right header is displayed successfully, however it doesn’t enqueue my
   custom CSS file that I have in my theme’s `functions.php`. I guess it’s because
   the plugin doesn’t check my theme’s `functions.php` when displaying the page.
 *     ```
       function add_theme_scripts() {
           wp_enqueue_style('theme-style', get_template_directory_uri() . '/assets/css/main.css', false, '1.1', 'all');
       }
       add_action('wp_enqueue_scripts', 'add_theme_scripts');
       ```
   
 * How can I enqueue css with a third-party plugin template?
    -  This topic was modified 4 years, 8 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Everything else WordPress
      topic

Viewing 1 replies (of 1 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/enqueue-css-to-a-third-party-plugin-template/#post-14907310)
 * > custom theme is displayed by a third-party plugin
 * If this was a custom theme, you may have to go back to your developer team and
   ask them to make the necessary change(s) to the theme.
 * Or, try asking at the support of the `third-party plugin` so the plugin’s developers
   and support community can help you with this.
 * **Commercial products are [not supported in these forums](https://make.wordpress.org/support/trouble/section-1-getting-started/what-is-not-supported).**

Viewing 1 replies (of 1 total)

The topic ‘Enqueue CSS to a third-party plugin template’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/enqueue-css-to-a-third-party-plugin-template/#post-14907310)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
