Hide Courses link from Course archive page

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

Use this CSS to hide Courses link from site homepage. Add this CSS code in Edwiser RemUI general setting > Custom CSS section

Apply this 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">
window.addEventListener('load', function () {
if (document.querySelector('body').id == 'page-course-index-category') {
document.querySelector('#mycoursestab').click();
}
});
</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 Courses link from site homepage. Add this 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">
window.addEventListener('load', function () {
if (document.querySelector('body').id == 'page-course-index') {
document.querySelector('#mycoursestab').click();
}
});
</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