Title: How to include files in html (without php request)?
Last modified: February 14, 2020

---

# How to include files in html (without php request)?

 *  Resolved [utnalove](https://wordpress.org/support/users/utnalove/)
 * (@utnalove)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/how-to-include-files-in-html-without-php-request/)
 * Hello,
 * how can I include in merge and minify files that are directly linked in the <
   head> section?
    They do not have whatsoever php calls. There is just the direct
   link to the .css file.
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/how-to-include-files-in-html-without-php-request/#post-12438493)
 * Hi,
 * In this case you will need to modify your template to enqueue the css and js 
   with php.
 *  Thread Starter [utnalove](https://wordpress.org/support/users/utnalove/)
 * (@utnalove)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/how-to-include-files-in-html-without-php-request/#post-12438637)
 * Hi, thanks for your reply.
    I have this line, but it’s not being minified/merged:
 * `<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url');?
   >" />`
 * any idea what may be wrong here?
    I tried to turn off/on plugin, delete cache,
   but still the same.
 *  Plugin Author [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * (@launchinteractive)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/how-to-include-files-in-html-without-php-request/#post-12438839)
 * If you remove that line and add this to your functions.php file it should work:
 *     ```
       function enqueue_scripts(){
       if (!is_admin()) {
       wp_enqueue_style( 'themename', get_stylesheet_uri());
       }
       }
       add_action('wp_enqueue_scripts', 'enqueue_scripts' );
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 The topic ‘How to include files in html (without php request)?’ is closed to new
replies.

 * ![](https://ps.w.org/merge-minify-refresh/assets/icon.svg?rev=3414776)
 * [Merge + Minify + Refresh](https://wordpress.org/plugins/merge-minify-refresh/)
 * [Support Threads](https://wordpress.org/support/plugin/merge-minify-refresh/)
 * [Active Topics](https://wordpress.org/support/plugin/merge-minify-refresh/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/merge-minify-refresh/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/merge-minify-refresh/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [launchinteractive](https://wordpress.org/support/users/launchinteractive/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/how-to-include-files-in-html-without-php-request/#post-12438839)
 * Status: resolved