How to hide Course link from Course archive page

For Newer version of Edwiser RemUI theme (It will work for version Edwiser RemUI 3.7.5 and above)

To hide the Courses link from the course archive page add the following CSS code in Edwiser RemUI general setting > Custom CSS section

#page-course-index-category #coursestab,
#page-course-index-category #coursesregion {
display: none;
}


Once this is done, navigate to Site administration > Appearance > Additional HTML > Before BODY is closed
Here you need to add this code:

<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
document.onreadystatechange = function () {
if (document.readyState == "complete") {
// We wait for Archive Page Object to be initialized.
var delayInMilliseconds = 1000; //1 second
setTimeout(function() {
if (document.querySelector('body').id == "page-course-index-category") {
document.querySelector('#mycoursestab').click();
}
}, delayInMilliseconds);
}
}
});
</script>



For Older version of Edwiser RemUI theme (It will work for versions till Edwiser RemUI 3.5.10, Edwiser RemUI 3.6.7 and Edwiser RemUI 3.7.4)


Use this CSS to hide the Courses link from the course archive page add the following CSS code in Edwiser RemUI general setting > Custom CSS section

#page-course-index #coursestab,
#page-course-index #coursesregion {
display: none;
}


Once this is done, navigate to Site administration > Appearance > Additional HTML > Before BODY is closed
Here you need to add this code:

<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
document.onreadystatechange = function () {
if (document.readyState == "complete") {
// We wait for Archive Page Object to be initialized.
var delayInMilliseconds = 1000; //1 second
setTimeout(function() {
if (document.querySelector('body').id == "page-course-index-category") {
document.querySelector('#mycoursestab').click();
}
}, delayInMilliseconds);
}
}
});
</script>

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us