To modify content using CSS alone is not possible; access to the HTML code or knowledge of JavaScript is necessary.
Below is a CSS workaround that involves adding an additional tag to your HTML:
a span {
display:none;
}
a::after {
content:'Access Course';
}
<a href="#"><span>Replay Course</span></a>
If you have the capability to include JS code, refer to the following solution:
document.getElementsByClassName("course-card__resume")[0].innerText = "Access Course";
<a href="#" class="course-card__resume">Replay Course</a>
Your complete code has not been provided, so ensure compatibility with this approach. This method utilizes the visibility
CSS property alongside absolute
positioning requirements:
a {
visibility:hidden;
position:relative;
}
a::after {
content:'Access Course';
visibility:visible;
position:absolute;
left:0;
}
<a href="#">Replay Course</a>