Home Forums WoodMart support forum Load some CSS styles on specific page(s)?

Load some CSS styles on specific page(s)?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #483281

    Thora
    Participant

    Hello,

    it’s nice to have the possibility to load some CSS styles on every page in theme settings via “Performance > CSS > Advanced > Styles always load”.

    But we need to load some CSS styles only on one specific page. Therefor loading it on every page would be a very bad workaround.

    Is it possible to load the cart CSS styles (e.g. woo-mod-shop-table.min.css) via PHP snippet with “if” rule also on another specific page?

    Our reason: We are using the plugin WPC Share Cart, therefor we have got the “share cart” page where the cart CSS styles should also be loaded.

    It would also be nice to add this “specific CSS on specific page” feature on the user interface, e.g. on the post edit screen in the area “Page Setting (custom metabox from theme)”, where already some page-specific theme settings can be found.

    Thank you in advance.

    #483289

    Luke Nielsen
    Keymaster

    Hello,

    You don’t need the PHP snippet for that. We have theme presets that could help you. Here is our documentation on how to use it: https://xtemos.com/docs-topic/theme-settings-presets/

    Just create a such condition for a specific page: https://take.ms/h8l0q , and edit its theme settings for enabling an appropriate style to always load.

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)