Мне нужно удалить текст из плагина WordPress Events, который отображает события в сетке с полным именем и адресом. Я хочу удалить адрес и оставить имя местоположения. Однако, несмотря на то, что есть отдельные поля для этих деталей на заднем плане, имя и адрес отображаются в одном и том же HTML Div. Есть ли способ, используя JavaScript, только удаление адреса? Код следующим образом: < /p>
{
"@context": "http://schema.org",
"@type": "Event",
"eventStatus": "https://schema.org/EventScheduled",
"startDate": "2025-08-27",
"endDate": "2025-08-27",
"eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode",
"location":
{
"@type": "Place",
"name": "West and Wardlawhill Parish Church",
"image": "https://9jh.adb.myftpupload.com/wp-content/uploads/2025/08/placeholder-4-1.png",
"address": "1 Western Ave, Rutherglen, Glasgow G73 1JQ"
},
"organizer":
{
"@type": "Person",
"name": "",
"url": ""
},
"offers":
{
"url": "https://9jh.adb.myftpupload.com/events/daily-each-3-days/",
"price": "0",
"priceCurrency": "GBP",
"availability": "https://schema.org/InStock",
"validFrom": "2025-08-27T00:00"
},
"performer": "",
"description": "Join us for a fun walk from West and Wardlawhill Parish Church through Malls Mire. Bring the kids, bring a friend, all welcome! Come along and meet new friends. If you have any questions, call 0141 646 0123. By registering to an event, you consent to Healthy n Happy processing your information as per our Privacy Policy. We will only keep information that is relevant to the type of involvement you have with us. You can withdraw your consent at any time by contacting enquiries@healthynhappy.org.uk",
"image": "https://9jh.adb.myftpupload.com/wp-content/uploads/2025/08/walks.jpg",
"name": "Walk Way Us Wednesday",
"url": "https://9jh.adb.myftpupload.com/events/daily-each-3-days/?occurrence=2025-08-27"
}
West and Wardlawhill Parish Church, 1 Western Ave, Rutherglen, Glasgow G73 1JQ
Поддержка плагина посоветовала мне использовать JavaScript для удаления адреса, но я не знаю, как.
Мне нужно удалить текст из плагина WordPress Events, который отображает события в сетке с полным именем и адресом. Я хочу удалить адрес и оставить имя местоположения. Однако, несмотря на то, что есть отдельные поля для этих деталей на заднем плане, имя и адрес отображаются в одном и том же HTML Div. Есть ли способ, используя JavaScript, только удаление адреса? Код следующим образом: < /p> [code] { "@context": "http://schema.org", "@type": "Event", "eventStatus": "https://schema.org/EventScheduled", "startDate": "2025-08-27", "endDate": "2025-08-27", "eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode", "location": { "@type": "Place", "name": "West and Wardlawhill Parish Church", "image": "https://9jh.adb.myftpupload.com/wp-content/uploads/2025/08/placeholder-4-1.png", "address": "1 Western Ave, Rutherglen, Glasgow G73 1JQ" }, "organizer": { "@type": "Person", "name": "", "url": "" }, "offers": { "url": "https://9jh.adb.myftpupload.com/events/daily-each-3-days/", "price": "0", "priceCurrency": "GBP", "availability": "https://schema.org/InStock", "validFrom": "2025-08-27T00:00" }, "performer": "", "description": "Join us for a fun walk from West and Wardlawhill Parish Church through Malls Mire. Bring the kids, bring a friend, all welcome! Come along and meet new friends. If you have any questions, call 0141 646 0123. By registering to an event, you consent to Healthy n Happy processing your information as per our Privacy Policy. We will only keep information that is relevant to the type of involvement you have with us. You can withdraw your consent at any time by contacting enquiries@healthynhappy.org.uk", "image": "https://9jh.adb.myftpupload.com/wp-content/uploads/2025/08/walks.jpg", "name": "Walk Way Us Wednesday", "url": "https://9jh.adb.myftpupload.com/events/daily-each-3-days/?occurrence=2025-08-27" }
West and Wardlawhill Parish Church, 1 Western Ave, Rutherglen, Glasgow G73 1JQ [/code] Поддержка плагина посоветовала мне использовать JavaScript для удаления адреса, но я не знаю, как.