• Home
  • Showcase
    • Newspaper Showcase
    • Newsmag Showcase
  • Support
    • Newspaper Forum
    • Newsmag Forum
    • Blog
    • Documentation
      • Newspaper Documentation
      • Newsmag Documentation
      • The Theme API
    • What’s New
      • Newspaper
        • What’s New in v 11.5
        • What’s New in v 11.4.3
        • What’s New in v 11.4
        • What’s New in v 11.2
        • What’s New in v 11
        • What’s New in v 10.4
        • What’s New in v 10.3.7
        • What’s New in v 10.3.2
        • What’s New in v 10.3
        • What’s New in v 10
      • Changelog
        • Newspaper
        • Newsmag
        • tagDiv Opt-In Builder
  • Services
    • Web Development Services
    • Web Solutions & CMS Development
    • Web design & Front-end Development
    • E-Commerce Development Services
    • Page Speed Optimization Services
  • Buy Newspaper
Search
tagDiv support
  • Become a member
  • Sign in
  • Home
  • Showcase
    • Newspaper Showcase
    • Newsmag Showcase
  • Support
    • Newspaper Forum
    • Newsmag Forum
    • Blog
    • Documentation
      • Newspaper Documentation
      • Newsmag Documentation
      • The Theme API
    • What’s New
      • Newspaper
        • What’s New in v 11.5
        • What’s New in v 11.4.3
        • What’s New in v 11.4
        • What’s New in v 11.2
        • What’s New in v 11
        • What’s New in v 10.4
        • What’s New in v 10.3.7
        • What’s New in v 10.3.2
        • What’s New in v 10.3
        • What’s New in v 10
      • Changelog
        • Newspaper
        • Newsmag
        • tagDiv Opt-In Builder
  • Services
    • Web Development Services
    • Web Solutions & CMS Development
    • Web design & Front-end Development
    • E-Commerce Development Services
    • Page Speed Optimization Services
  • Buy Newspaper

This forum is now closed to new posts

All existing content remains available to browse and search. For support, please email us at contact@tagdiv.com Our team is happy to help as soon as possible.

Home Newspaper White Space Mobile & Updated Post Date

White Space Mobile & Updated Post Date

Posted in: Newspaper
Post count: 96
VZ
#304667
Jul 11, 2019 at 1:25 pm

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:

  • a. I want to be able to add a snippet that would appear above the body of my post when I edit a post and add content to an older post. This snippet would in effect say:

    ‘Last updated on ​July 1​1​th 2019’. (or whatever date you edited it on).

  • ​b. That it appears in the meta description​
  • c. That it appears on the latest posts as updated – for example on the homepage but with updated as the date.
  • <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

    • This topic was modified 7 years by VZ.
    • This topic was modified 7 years by VZ.
    Post count: 18283
    Vlad S
    #304719
    Jul 11, 2019 at 4:45 pm

    Hello !

    For the issue please add this code .td-a-rec-id-header_mob {
    margin: 0px;
    }
    here: https://www.screencast.com/t/J1Nxw5s5

    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 !

    Post count: 96
    VZ
    #304828
    Jul 12, 2019 at 1:19 pm

    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

    Post count: 18283
    Vlad S
    #304873
    Jul 12, 2019 at 3:02 pm

    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 !

    Post count: 96
    VZ
    #304934
    Jul 12, 2019 at 5:25 pm

    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

    Post count: 18283
    Vlad S
    #305048
    Jul 15, 2019 at 8:20 am

    Hello !

    This is the code to hide the bug of the last updated option:.page-id-347 .last-updated {
    display: none;
    }
    This should be pasted in Custom Code here: https://www.screencast.com/t/J1Nxw5s5

    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 !

    Post count: 96
    VZ
    #305114
    Jul 15, 2019 at 11:46 am

    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.
    Post count: 18283
    Vlad S
    #305153
    Jul 15, 2019 at 2:21 pm

    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 !

    Post count: 96
    VZ
    #305562
    Jul 17, 2019 at 8:41 pm

    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

    Post count: 96
    VZ
    #305762
    Jul 18, 2019 at 4:31 pm

    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

    Post count: 20688
    Simion C.
    #305832
    Jul 19, 2019 at 9:28 am

    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

    Post count: 96
    VZ
    #502074
    Mar 1, 2024 at 9:59 pm

    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

    Post count: 96
    VZ
    #502100
    Mar 2, 2024 at 5:22 pm

    No need for a response. I found the issue. It was from the cache in a plugin. All good now, thanks

    Viewing 13 posts - 1 through 13 (of 13 total)
    The forum ‘Newspaper’ is closed to new topics and replies.
    VZ
    Support Hours (GMT+2)

    Monday - Friday:
    8:00 AM - 17:00 PM

    Documentation
    • Newspaper
    • Newsmag
    Facebook Instagram Twitter Youtube
    Welcome to the Community! This is our main Support Center and, also the place where you can make new friends, people just as passionate about websites as you are. Don’t hesitate to ask for help as we are here for you. Thank you for buying our products!
    Contact us: contact@tagdiv.com
    • Home
    • Blog
    • Forums
    • About us
    • Support policy
    • Privacy Policy
    © tagdiv.com | Proudly made with by tagDiv. All rights reserved
    We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
    Cookie SettingsAccept All
    Manage consent

    Privacy Overview

    This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
    Necessary
    Always Enabled
    Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
    CookieDurationDescription
    cookielawinfo-checkbox-advertisement1 yearThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Advertisement".
    cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
    cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
    cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
    cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
    cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
    cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
    viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
    viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
    Functional
    Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
    Performance
    Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
    Analytics
    Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
    CookieDurationDescription
    _ga2 yearsThis cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors.
    _gat_gtag_UA_43963494_11 minuteThis cookie is set by Google and is used to distinguish users.
    _gid1 dayThis cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visted in an anonymous form.
    Advertisement
    Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
    CookieDurationDescription
    IDE1 year 24 daysUsed by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile.
    test_cookie15 minutesThis cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies.
    VISITOR_INFO1_LIVE5 months 27 daysThis cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website.
    YSCsessionThis cookies is set by Youtube and is used to track the views of embedded videos.
    Others
    Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
    CookieDurationDescription
    CONSENT16 years 5 months 26 days 13 hours 25 minutesNo description
    yt-remote-connected-devicesneverThis cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video.
    yt-remote-device-idneverThis cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video.
    SAVE & ACCEPT
    Powered by CookieYes Logo