So what you need to do is make your life easier and instead of searching everything within every instance of .pp-post-content
or .pp-post-content p
, let’s wrap the times or the times in question with a span tag. Like you suggested in your comments <span class="tas-event-time">
is sufficient enough.
Now, in your .js file, you want to add the following:
jQuery( document ).ready( function($) {
$( '.tas-event-time' ).html( $( '.tas-event-time' ).html().replace( '12:00 pm','12:00 noon') );
} );
That will, once the document is ready, change the instances of ’12:00 pm’ to ’12:00 noon’.
Related Posts:
- Default timezone hardcoded as UTC?
- How to convert DateTime() to display time based on WordPress timezone setting?
- Is it safe to use ‘date_default_timezone_set’ in plugin file?
- filter date and time to differents time zone
- WordPress outputs mm/dd but it should be opposite
- timestamp and scheduled post irregularities
- UTC/local time in Worpdress
- Convert CST published date time to MST timezone
- Why do I need to set my PHP timezone when it’s already set in WordPress?
- Default Timezone setting in WordPress – is that global?
- Can someone explain why wordpress uses two column for storing time values?
- How to get WordPress Time Zone setting?
- Proper formatting of post_date for wp_insert_post?
- What’s the difference between get_the_time and get_the_date?
- PHP function showing wrong time in WordPress
- Running WP Cron on specific local time
- Why time functions show invalid time zone when using ‘c’ time format?
- Whats the way to format a date after using get_posts()
- Date, Time, and Timezones
- What is the best workaround for supporting all existing DATEs?
- Date format with genitive case of the month name is not working
- How do I display posts by day?
- Serve visitor post time adjusted to their timezone
- Fixing UTC time – wordpress effects
- How to check for WordPress timezone type?
- Echo Messages By Checking current_time()
- Finding difference in days
- How to get time difference between publish date and now?
- How would I bulk change posting date?
- Is a MySQL DATETIME or TIMESTAMP value retrieved through $wpdb in UTC?
- If else statement based on date_diff value
- How do I create a dynamically-updated copyright statement?
- How do you format the date as a two digit year? (ex. “10.12.10” instead of “10.12.2010”)
- How can I display the current time? [closed]
- I get “The PHP Date/Time library is not supported by your web host.” on my CentOS host, what library to I need to install to add support?
- Creating a function within functions.php to change the date
- Relative time – how to calculate difference beween post publish date and current time
- Calculate future date
- date() returns incorrect value if used from WordPress theme, but correct otherwise
- How to get date using timezone saved in options? [duplicate]
- php console log speed [closed]
- Timezone UTC to PST
- How do I set up my blog home page to show only this weeke’s posts automatically?
- Make WordPress use timezone for email Date header
- Display date and time in comments
- Time Issue xx hours ago
- Get WordPress current date/time
- Separately formatting date elements
- How can i display time minus 6 hours
- Show the_date with link
- Displaying time & date problem
- Translate current_time
- Should I escape the attributes when using get_month_link?
- How do I make a page not visible at a certain time? [closed]
- How get exact time difference
- wordpress blog posts’s time
- Where does the time get pulled from in the_time()
- Human time difference in months instead of days. How?
- Display posts starting from today date
- Separating publish date and last modified
- How to get User Time Zone in WordPress?
- Compare date fails when date is in next year [closed]
- How to setup language of a date in a plugin
- Problems with the_time,the_date, get_the_time
- admin end post published time display not working correctly
- Comparing Time with the_time();
- Date time doesn’t show correctly in qTranslate [closed]
- Timed post and tweet?
- wp_dropdown_categories by date?
- How to detect and handle the time difference between server and user in WordPress?
- WordPress Translate Date Function is giving Error
- Apply filters on date format
- How to fix mysql2date() for 5.3.2 version?
- Incorrect display of bbpress forum topics & replies
- Timezone for Plugin
- How to get Unix Local Time?
- Render the published date/time formatted in ISO 8601 using Timber (.twig)
- Change the year of the whole site
- Display datetime in user’s timezone
- Get current week’s day and time outside the loop
- Calculate how much time passed comparing WordPress comment and current time
- Pull ‘Popular Posts’ within specific timeframe
- Block post updates and deletion after a set period
- Replicate the_date function when using a custom field
- Change the counter in terms of date
- Comment time is same as the post time
- Query sub subpages based on specific date?
- Adding a class to last post in the_date
- Standard API for rendering a date form
- Display the last date, regardless of articles
- Date is showing in unreadable format. How to convert to readable date?
- How to remove the hyperlink from all post dates where when you mouseover over the post date, a hyperlink displays like- “…com/2023/08/“
- Converting timestamps to local time with date_l18n()
- Unable to select an old date in wordpress
- How to get date for each post?
- Order by meta value or date?
- Custom Post Type Archives by Date and Taxonomy
- How to schedule multiple posts while adding new
- When does next Cron Job run (time from now)?
- Immediately published posts are scheduled and published 2 hours later