Add text next to date

Posted in: Newspaper
Post count: 23

Hello,

I want to add text next to the top left date. If I edit a file ../newspaper-child/parts/top-header.php and refresh website, the text I entered there is displayed only for a second and then disappears.

My Code:

<div>
<?php echo date_i18n(stripslashes($tds_data_time)); ?> MY TEXT
</div>

Thank you!

Post count: 23312

Hello aaprofi,

Please check the following code from here -> https://www.screencast.com/t/QbR5jlQ10p and the result will look like this -> https://www.screencast.com/t/p8I42FQ1xyWF

Thanks for your understanding!

Post count: 23

Thanks for the answer, but it does not work. The text will appear for a while while loading the page and then disappears.

Post count: 23

I record this issue, look here:
https://streamable.com/o9wtz
(the text next to the date will appear when the menu goes wrong)

  • This reply was modified 7 years by apod.
Post count: 23312

Hello aaprofi,

Provide your website URL so I can take a closer look at it.

Thanks.

Post count: 23
Post count: 23312

Hello aaprofi,

Please provide some screenshots from the code so I can see what code you write.

Thanks for your understanding!

Post count: 23

Hi, can you specify, what code (or file) do you mean? Thank you!

Post count: 23312

Hello aaprofi,

Did you have followed my above useful guide? https://www.screencast.com/t/QbR5jlQ10p -> https://www.screencast.com/t/p8I42FQ1xyWF Did you have added the code like this? I want to see that section from your core file (top-menu.php)

Thanks for the message!

Post count: 23

Yes, I do, of course:

https://i.imgur.com/LlLqYDF.jpg

Post count: 23312

Hello aaprofi,

Please provide your website URL so I can take a closer look at it! I have made a child theme and add this code inside it and it seems to work as expected but I do not understand why on your side this section will be hidden after a while, sorry!

Thanks for your understanding!

Post count: 23

Hello, I do not want to post a direct link, so I’ve mentioned the link above, here it is again:
https://tinyurl.com/y8hukgfh

Post count: 23312

Hello aaprofi,

Please send us an email at contact@tagdiv.com with your log-in information (wp-admin) so we can further investigate it closer your setup page. Provide there the link to this topic so we can quickly identify you. Also, the CPanel access is required to provide here.

Thanks.

Post count: 23

Hello, the problem was in the enabled option:

JAVASCRIPT DATE
Enable this if you use a cache plugin, it displays the local data.

When I turn this off, it works.

Thank you!

Viewing 14 posts - 1 through 14 (of 14 total)
The forum ‘Newspaper’ is closed to new topics and replies.