Hi,
I have already mentioned this in a discussion on Envato – and have purchased further support to deal with these issues – 1 x issue and 1 x request as follows:
ISSUE-1:
On the site: https://searchgo.co mobile version – there is a problem with white space at the top of mobile pages – it doesn’t look good and ruins the experience. At first, Brogdan suspected it was an issue with ads – however, I removed ads and the issue still remains. I have now replaced ads and on the discussion mentioned again. Brogdan believes it is a CSS issue. Can I get this fixed?
REQUEST-2:
I had previously requested adding a modified date to posts and that it appears in the meta description as well so that in turns appears in search engines when I update an old post. There was one response before about changing the templates, but I don’t want to do that as I have already got sized images etc in each post, plus I didn’t understand the response. So, here is what I would like to do and a solution I found which if I use breaks Newspaper but supposedly the correct solution:
‘Last updated on July 11th 2019’. (or whatever date you edited it on).
<br>
I did some research and came across this workaround (However, the problem is when I add the code to my child functions.php it works okay, but, it throws the date and words outside of the body to the left of the template body).
Here is the code:
function wpb_last_updated_date( $content ) { $u_time = get_the_time('U'); $u_modified_time = get_the_modified_time('U'); if ($u_modified_time >= $u_time + 86400) { $updated_date = get_the_modified_time('F jS, Y'); $updated_time = get_the_modified_time('h:i a'); $custom_content .= '<p class="last-updated">Last updated on '. $updated_date . ' at '. $updated_time .'</p>'; } $custom_content .= $content; return $custom_content; } add_filter( 'the_content', 'wpb_last_updated_date' );
Here is where I found the original article that references this code:
How to Display the Last Updated Date of Your Posts in WordPress
Thanks
Vincent
Hello !
For the issue please add this code .td-a-rec-id-header_mob { here: https://www.screencast.com/t/J1Nxw5s5
margin: 0px;
}
For the request: https://www.screencast.com/t/I1fQ1J6XT As you can see we simply copied the code you pasted here and added to our main theme Functions.php and it worked. Let me know where you have placed your code or show us some screenshot so we can help you identify your issue !
I hope this was helpfull !
Thank you !
Hi Vlad,
Issue – 1 – mobile header
On the mobile, the problem still persists. It did not change it at all. PLease can you confirm on https://searchgo.co/signature-townhouse-hyde-park/ for example?
Request – 2 – date
I placed the code in the child functions.pho – see screenshot:
It works on the posting page – however, on the homepage, it shows above the images see screenshot: https://pasteboard.co/InCr8n2.png
Also, is there a way on the posting page that it can be darker or bold? SO that visitors notice that it was updated.
Here is the code in child theme functions: https://pasteboard.co/InCocUS.png
Thank you
Vincent
Hello !
I’m sorry, this is my fault ! You will have to paste the code in here: https://www.screencast.com/t/IVnj20KPino
Also please activate the code in functions ( I can’t make it work on my side ) and I will provide you a custom css in order to make it dissapear from the homepage and remain only in posts.
Thank you !
Hi Vlad, the problem still persists – the mobile still has white space at top, even though I moved the code to the other area. https://pasteboard.co/InDXq28.jpg
I do not know what you mean by activate it in functions – it is already activated as per screenshot and it doesn’t work as the problem is still there. https://pasteboard.co/InCocUS.png
Also, is there a way on the posting page that it can be darker or bold? SO that visitors notice that it was updated.
Thanks
Vincent
Hello !
This is the code to hide the bug of the last updated option:.page-id-347 .last-updated { This should be pasted in Custom Code here: https://www.screencast.com/t/J1Nxw5s5
display: none;
}
Please make sure that you refresh your page twice after going into mobile view: https://www.screencast.com/t/QOhvZHcMMsv3 As you can see there is no white spate on my end, also i’ve checked it using my mobile phone.
Let me know if I can be more helpfull !
Thank you !
Hi, The problem is still there on mobile – you need to go into the site not homepage and see the top of the page it is a large white space.
The updated date is now hidden on the homepage, thanks. – maybe somebody else here can tell me how to make it bold on the single posts page.
Thanks for your help
-
This reply was modified 7 years by
VZ.
Hello !
The white spacing issue seems to be very strange, on mobile emulators works fine everywhere, on mobile devices it shows the white space. Please contact us via email at contact@tagdiv.com and provide admin login, as well as cPanel or FTP if possible. We will take a look. Include a link to this topic in the email.
I’m sorry, here is the CSS to bold out the last updated text:
.last-updated {
font-weight: bold;
}
I hope this was more helpfull !
Thank you !
Hi Vlad,
Okay, I am sending you admin details – I have also just upgraded to the latest version – however, all sidebars have disappeared and the updated text is no longer showing. It should have worked perfectly as there were not many files to replace and the site uses a child theme.
Email on the way – please would you also implement that ‘bold’ code as well, as I don’t want to fiddle with the site while it is broken with the sidebars.
Thanks
Vincent
Hi Vlad,
I think we are getting there – the dates look better now as bold so that visitors can see it has been updated per example: https://searchgo.co/travel-to-egypt/.
Will this appear in the meta description as being updated when indexed – for example in search engines will it appear under the old date or under the updated date?
Thanks
Vincent
Hi,
You can test with the Google structured data tool to see how Google sees the post
– https://search.google.com/structured-data/testing-tool/u/0/
The theme already provides the necessary date published and date updated structured data for posts, the format being based on the timezone used in the WordPress general settings.
Using cloud templates for posts, a modified date can be displayed in the post page, there is an element created specifically for this – http://prntscr.com/oh4yce
But if you have added another updated date I can’t say what Google will choose to display.
Thanks
Hi,
Almost 5 years on and I need to re-open this post 🙂
Now that the Newspaper theme has a way of showing the modified date I do not need the code any more to show the modified date. I removed it from the custom CSS, however, I cannot find it anywhere in the site. I tried going through the CPANEL file manager but still nothing. When I inspect it in Chrome it shows this:
<p class="last-updated">Last updated on March 1st, 2024 at 10:56 am</p> from this page: https://searchgo.co/internet-speeds/
it doesn’t look very nice as it’s under the menu on the home page. I would appreciate any advice to remove this.
Thank you