-
Hi,
How can I disable the “Lock modified date” module in Rank Math?
-
Hello,
We apologize for the issue you are facing. However, it seems that there is no specific module called "Lock modified date" in Rank Math that can be disabled. Instead, the functionality to lock the modified date is integrated into the editing process of posts and pages, allowing you to enable or disable it as needed while saving your content.
If you want to prevent the modified date from being updated, you can do so by enabling the option in the respective editor (Gutenberg, Classic, Elementor, or Divi) when you are editing your posts.
If you have further questions or need assistance with a specific aspect of this feature, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.
Thank you for raising your concern!
Sources:
How to Lock the Modified Date of Your Posts » Rank Math
How to Prevent Modified Date of Your Blog Posts from Being Updated » Rank MathHello,
Thank you for contacting Rank Math support.
The Rankbot response is accurate. There is no “Lock Modified” Date module. The option to lock the modified date is available in the post settings. You can uncheck the “Lock Modified Date” checkbox to disable it.
Don’t hesitate to let us know if you need help with anything else.
I mean that I would like to remove the “Lock modified date” functionality. I don’t need it.
Hello,
Thank you for contacting Rank Math support.
The Rank Math plugin does not provide an option to disable this option, but you hide it using CSS, like this:
function hide_lock_modified_date_element() { echo ' <style> /* Target the element using the ID and child div structure */ #tabs-0-edit-post\\/document-view > div:nth-child(1) > div > div:nth-child(5) > div:nth-child(2) { display: none; } </style> '; }You can add the code to your site using any of the methods here.
We hope this helps you resolve the issue. Don’t hesitate to contact us again with any other questions or concerns regarding Rank Math. We are always happy to help.
Thank you for choosing Rank Math!
Hello,
BTW, If you’re using the Classic Editor, you can use this code instead:
add_action('admin_head', 'remove_rank_math_lmd_classic'); function remove_rank_math_lmd_classic() { echo ' <style> #rank-math-lock-modified-date { display: none; } </style> '; }Don’t hesitate to let us know if you need help with anything else.
Thank you for your reply.
Hiding feels like a hacky solution. Can you please ask your developers to provide an option or filter to disable the “Lock modified date” functionality?
P.s. I see that https://github.com/rankmath/seo-by-rank-math/blob/master/assets/admin/js/gutenberg.js contains code related to the “Lock modified date” functionality, but the src folder (https://github.com/rankmath/seo-by-rank-math/tree/master/assets/admin/src) seems not to have the latest files?
Hello,
Thank you for your feedback. I’ve discussed it with the team, and we have decided to include a filter to disable the Lock Modified Date in the next update.
Once the update is published, you can find the new filter here, or you can keep an eye on our changelog page to know when this has been shipped.
Thank you for choosing Rank Math.
Hello,
I’m glad to hear that the filter will be included in the next update! I’ll keep an eye on the changelog.
Thanks for your support.
Hello,
We are glad that helped.
Please feel free to reach out to us again in case you need any other assistance.
We are here to help.
Thank you.
Hello,
Thank you for your patience.
Just a quick update that we have fixed this issue on one of our recent releases.
Please update Rank Math & all other plugins, themes and WordPress to the latest version.
The issue should be fixed.
If not, please feel free to open a support topic or reply to this message and we will be more than happy to assist.
The ticket ‘How can I disable the “Lock modified date” module in Rank Math?’ is closed to new replies.