Tagged: x
-
AuthorPosts
-
June 3, 2016 at 2:13 pm #1024625
AlmusanParticipantHow can i remove the date and updated date from a PAGE?
Thanks
June 3, 2016 at 10:54 pm #1025203
Prasant RaiModeratorHello There,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
Thanks.
June 4, 2016 at 2:04 am #1025359
AlmusanParticipantThis reply has been marked as private.June 4, 2016 at 3:28 am #1025410
RahulModeratorHey There,
Can you link us to the page from where you want to remove the date?
Thanks
June 4, 2016 at 9:09 am #1025643
AlmusanParticipantIs the main page. A person can´t see it but when when see the code (ctrl+u) we can see it: span class=”updated”>
June 5, 2016 at 12:38 am #1026260
Rue NelModeratorHello There,
Thank you for the clarifications!
After investigation, I found out that you have added a custom function in your parent theme’s functions.php file which is not recommend. Since what you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Once you already have your child theme active and ready, please insert this following code in your child theme’s functions.php file.
//add hatom data function add_suf_hatom_data($content) { $t = get_the_modified_time('F jS, Y'); $author = get_the_author(); $title = get_the_title(); if ( is_single() || is_archive() ) { $content .= '<div class="hatom-extra" style="display:none;visibility:hidden;"><span class="entry-title">'.$title.'</span> was last modified: <span class="updated"> '.$t.'</span> by <span class="author vcard"><span class="fn">'.$author.'</span></span></div>'; } return $content; } add_filter('the_content', 'add_suf_hatom_data'); // =============================================================================Hope this helps. Kindly let us know.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1024625 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
