0

I want to replace Event Date: word using CSS and without the help of jQuery.

<ul class="event-custom-price">
  <li>Event Date:
    <p>Tue, 25 Jun 2019 02:14 AM - Tue, 25 Jun 2019 03:14 AM</p>
  </li>
  <li>Event Location:</li>
  <li>Teal Moonlight x 1: <span class="woocommerce-Price-amount amount"> <span class="woocommerce-Price-currencySymbol">$</span>3</span>
  </li>
</ul>
3
  • Hello this is my code, I want to replace Event Date word from li tag only using css not Jquery please help me Commented Jun 21, 2019 at 11:47
  • You can't remove any node of DOM using CSS .
    – Codesigner
    Commented Jun 21, 2019 at 11:51
  • first duplicate: how to hide content. Second duplicate: how to add new content Commented Jun 21, 2019 at 11:54

1 Answer 1

0

set Tagname for that "event date" tag and apply below css

.Tagname:before {
  content: "New Word";
}
4
  • This is wordpress plugin I cant hack Commented Jun 21, 2019 at 12:01
  • Okay.Then use tagname. Commented Jun 21, 2019 at 12:03
  • Can you share code Commented Jun 21, 2019 at 12:56
  • like this, if you want to change <p> tag then use like this p:before { content:"new text"} Commented Jun 22, 2019 at 10:56

Not the answer you're looking for? Browse other questions tagged or ask your own question.