Hi Jessica
It is the same bit of code that Kevin helped me out with a few weeks ago. That is, putting this bit of code (see below) into the customize JS part of Catalog will hide the occurrence of 'Starts' in all of the product-date shown in Catalog. This bit of code combined with open-ended access to course materials in Canvas allows for discrete dates to be shown in Catalog for courses set up this way.
This may or may not be useful depending on the situation and the code probably needs some refining. For example, you may want to only apply this code to an events only sub-catalog or on a course by course basis as needed. We will probably not be using it at this stage but it works.
setInterval(function () {
var search = "Starts";
$(".product-dates").html(function (_i, orig) {
return orig.replace(new RegExp("(" + search+ ")", "g"), "<span>$1</span>");
});
$(".product-dates span").css({"display": "none",});
}, 1000);
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.