Remove several date

Posted in: Newspaper
Post count: 109

Hi,

How to remove these two lines from the page source to prevent date published in snippets?

datePublished
dateCreated

Thanks!

  • This topic was modified 11 years by JBH.
Post count: 6600

Hi,

You can do it like this: http://screencast.com/t/2IO8XfHK41f

Thanks

Post count: 109

Thanks for your reply Lucian, we’re almost there! I’ve removed the lines you advised and the date isn’t showing up anymore in the rich snippet tool.

http://www.google.com/webmasters/tools/richsnippets

unfortunately the date isn’t gone at review articles. Which line do i have to remove to review date (not the stars)

it’s called “meta itemprop=”datePublished” in the source code.

Thanks!

Post count: 6600

Hi,

Try this: http://screencast.com/t/pFQd6xEYG

Thanks

Post count: 109

Your the best Lucian!

Thanks again!

JBH

Post count: 109

Hi Lucian, it’s me again. One last issue about this…

The first solution that you gave me: http://screencast.com/t/2IO8XfHK41f
Breaks up the theme a bit.

The problem is that the first line of a new article (post or page) is moved to the right.

You can see a example over here: http://goo.gl/sbK0rd

Can you please take a closer look to solve this?

Thanks!

Post count: 6600

Hi,

Are you sure that this happened after you remove this line: http://screencast.com/t/2IO8XfHK41f
I have inspected the post you have sent me and did not noticed any element there that could generate that space, please make sure that you don’t have a space added there from posts content editor.
I have tried to recreate this but did not get an issue like that: http://screencast.com/t/PMRncwwC

Thanks

Post count: 109

Hi Lucian,

Yes, i’m sure that it happened after i’ve removed those lines

http://screencast.com/t/2IO8XfHK41f

by adding ‘//’ before them.

I’ve removed them and everything went back to normal (expect that the dateCreated is back)

It’s nog that something creates space, but it’s like there is one line missing and the complete post is moving up right behind the post tag blocks. When we can add a blank line instead of those tho lines:

//$buffy .= ‘<time itemprop=”dateCreated” class=”entry-date updated’ . $visibility_class . ‘” datetime=”‘ . date(DATE_W3C, $td_article_date_unix) . ‘” >’ . get_the_time(get_option(‘date_format’), $this->post->ID) . ‘</time>’;
//$buffy .= ‘<meta itemprop=”interactionCount” content=”UserComments:’ . get_comments_number($this->post->ID) . ‘”/>’;

The problem is solved i guess. I’ve tested and the ‘missing line’ issue isn’t there when i add a ‘featured picture’ to the post.

Thanks…

JB

Post count: 109

Hi Lucian,

update: problem solved, but is it the right way?

I’ve added this line:

$buffy .= ‘</br>’;

like this:

http://gyazo.com/cc790219a1fca31fbfbb4a0d11b4c0a6

And the problem is solved! But is this the right way to do it?

Thanks

JB

Post count: 6600

Hi,

The <br> tag inserts a single line break, that should solve this issue. Just to be sure I have also checked this and seems to look and work fine: http://screencast.com/t/S9KyKgutsP
Let me know if something else appears because of this.

Thanks

Post count: 28

Your screencasts don’t work anymore. I want to know how to remove the date, can you update this please?

Post count: 22421

Hello owt,
This topic is one year old. The Screencast limit has been reached in this time period and that is why the screens are not available anymore.
You can remove the date by commenting this code : http://screencast.com/t/fkpW5CpK
Thank you!

Post count: 28

I am using the old newspaper. Problem is when i uncomment it out, the Subtitle is moved to the right side because of removing the date (even though i don’t actually use the dates, they are hidden). See here: http://www.directupload.net/file/d/4136/u67ck7cd_png.htm

How can I fix this?

Cheers

Post count: 7909

Hi,

Please try this css in Theme Panel > Custom Css – http://screencast.com/t/8V2pCFwXJqf

.post .td-sub-title {
clear: both;
}

Thanks!

Viewing 14 posts - 1 through 14 (of 14 total)
You must be logged in to reply to this topic.