Title: Two CSS files
Last modified: December 21, 2021

---

# Two CSS files

 *  Resolved [Jochen Gererstorfer](https://wordpress.org/support/users/gmmedia/)
 * (@gmmedia)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/two-css-files-2/)
 * Hello,
    you load the following 2 CSS files on every page:
 *     ```
       /wp-content/plugins/affiliatex//assets/dist/fontawesome/css/all.min.css
       /wp-content/plugins/affiliatex//app/build/publicCSS.css
       ```
   
 * Why not load it only on pages with an active AffiliateX block?
    It would also
   be good, to let us deactivate the Fontawesome CSS completely, if we load it already.
 * Jochen

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

 *  [Kraft Plugins Team](https://wordpress.org/support/users/kraftpluginsteam/)
 * (@kraftpluginsteam)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/two-css-files-2/#post-15196997)
 * Hi [@gmmedia](https://wordpress.org/support/users/gmmedia/),
 * Thank you for letting us know about this issue. We have fixed the issue and released
   an update. You can update the plugin to the latest version.
 * If you still notice any issues or have questions, please let us know.
 *  Thread Starter [Jochen Gererstorfer](https://wordpress.org/support/users/gmmedia/)
 * (@gmmedia)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/two-css-files-2/#post-15197495)
 * Hey [@kraftpluginsteam](https://wordpress.org/support/users/kraftpluginsteam/),
   
   thank you for the fast update.
 * But you still load the 2 files on all archive pages.
 * Jochen
 *  [Kraft Plugins Team](https://wordpress.org/support/users/kraftpluginsteam/)
 * (@kraftpluginsteam)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/two-css-files-2/#post-15206578)
 * Hi [@gmmedia](https://wordpress.org/support/users/gmmedia/),
 * On archive and blog pages, there are multiple templates as per theme, one where
   it displays the block content, and one where it doesn’t display block content,
   just title and default blocks. Further, user also have the option to display 
   the excerpt or full content on blog and archive pages.
 * There isn’t possibly anyway to check this, so we only check if the content has_block
   which returns true in both the above mentioned cases, hence the CSS are enqueued
   in archive and home pages.
 * For now, we will go with this approach. In the future, we can consider including
   the feature (a toggle button) to disable it on the archive pages.
 * Thank you.
 *  [Kraft Plugins](https://wordpress.org/support/users/kraftplugins/)
 * (@kraftplugins)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/two-css-files-2/#post-15248429)
 * Marking this as resolved due to inactivity.

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

The topic ‘Two CSS files’ is closed to new replies.

 * ![](https://ps.w.org/affiliatex/assets/icon-256x256.jpg?rev=3520821)
 * [AffiliateX – Amazon Affiliate Plugin](https://wordpress.org/plugins/affiliatex/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/affiliatex/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/affiliatex/)
 * [Active Topics](https://wordpress.org/support/plugin/affiliatex/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/affiliatex/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/affiliatex/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Kraft Plugins](https://wordpress.org/support/users/kraftplugins/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/two-css-files-2/#post-15248429)
 * Status: resolved