@achangeforbetter — thanks for sharing this! I can’t seem to get it working, though–I have the plugin activated, but it doesn’t have any effect. I set the page ID numbers with their corresponding page URLs as below–do I have some typo below causing it not to work?
// Set here IDs of the pages, that use Ultimate Member scripts and styles
$um_posts = array(266, 262, 265, 264, 267, 4124, 4127, 263, 261);
// Set here URLs of the pages, that use Ultimate Member scripts and styles
$um_urls = array(
'/account/',
'/login/',
'/logout/',
'/members/',
'/password-reset/',
'/register/',
'/register/subscriber',
'/register/supporter',
'/user/',
);
EDIT: oh, never mind! The UM assets being loaded are just the fonts–the CSS and JS isn’t, as intended! Regardless, if you wouldn’t mind looking and just checking that everything above looks good and letting me know, that would still be appreciated!
ADDITIONAL EDIT: curiously, if a UM element (e.g. shortcode) is present on a page, it seems like it will still load the CSS and JS, even if I don’t have it on the list of page IDs and URLs that have “Ultimate Member scripts and styles”–this is fine, of course, but is this to be expected?
-
This reply was modified 4 years, 5 months ago by hastibe. Reason: update
-
This reply was modified 4 years, 5 months ago by hastibe. Reason: another addition