I am currently working with a theme that cannot be altered due to automatic update requirements. The theme includes the following HTML code snippet:
<div class="dropdown-menu">
<a href="#">Profile</a> | <a href="#">Logout</a>
</div>
My goal is to hide the "Profile" link and the pipe character visually, without making any changes to the theme's underlying HTML structure.
Hiding the "Profile" link is straightforward:
.dropdown-profile a:first-of-type{
display: none;
}
However, I am seeking a solution for removing the pipe (|) character using CSS or JavaScript. Can you provide guidance on achieving this?