• 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)
  • Hi @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

    (@gmmedia)

    Hey @kraftpluginsteam,
    thank you for the fast update.

    But you still load the 2 files on all archive pages.

    Jochen

    Hi @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.

    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.