Home › Forums › Support › Add current date to homepage & category pages This topic has 17 replies, 3 voices, and was last updated 4 years, 6 months ago by David. Viewing 15 posts - 1 through 15 (of 18 total) 1 2 → Author Posts September 20, 2019 at 12:24 pm #1014763 oge Hi Is there a way I can add the current date to my homepage title and category pages title? Thanks September 20, 2019 at 12:25 pm #1014765 LeoStaff Customer Support Hi there, Where would you like to add it? Let me know 🙂 September 20, 2019 at 12:26 pm #1014766 oge My homepage title tag and category pages title tag September 20, 2019 at 4:50 pm #1014882 DavidStaff Customer Support Hi there, you can use a Hook Elememt – and select the after_logo hook. And add this PHP snippet: <?php echo date('l jS F Y'); ?> September 21, 2019 at 5:32 am #1015109 oge Hi I can’t get this to work. I have the display rules set for the entire site and all users. I need the date to display in the page title. Thanks September 21, 2019 at 6:16 am #1015143 DavidStaff Customer Support Can you link me to your site so i can see the setup? When you say it doesn’t work – what does this mean – is nothing being displayed? September 21, 2019 at 7:55 am #1015281 oge Yes nothing is being displayed. You can view my settings here – https://ilado73.imgbb.com/ September 21, 2019 at 9:49 am #1015367 LeoStaff Customer Support That link requires a login to view. Can you link me to the live site in question? Make sure execute PHP is checked in element settings as well. September 21, 2019 at 10:06 am #1015385 oge How can I send you the link in private? September 21, 2019 at 10:15 am #1015391 LeoStaff Customer Support You can edit the original topic and use the private URL field. September 21, 2019 at 11:22 am #1015426 oge I have edited the topic and added my URL details. Thanks September 21, 2019 at 3:09 pm #1015531 DavidStaff Customer Support Can you try changing the Hook to the after_header_content hook September 22, 2019 at 7:36 am #1015842 oge Hi It appears in the header area but how do I get it to display in the page title? September 22, 2019 at 8:42 am #1015969 DavidStaff Customer Support Change the code to this: <p class="main-title" itemprop="headline"> <?php echo 'My Site Title ' . date('l jS F Y'); ?> </p> And then disable the Site Title in the Customizer. This way the title meta tag will preserve your actual site title. September 23, 2019 at 9:42 am #1016877 oge Hi How can I get the current date to display inside the title tag (<title></title>), either at the beginning or at the end? Thanks Author Posts Viewing 15 posts - 1 through 15 (of 18 total) 1 2 → You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In