ArticleBody in the post

Posted in: Newsmag
Post count: 142

Hi,

I would insert the code itemprop = “ArticleBody”
inside of my post, to follow the schema.org/article and schema.org/newsarticle

how can I do??

news about your appearance, good work

Post count: 142

Hi,

I would like to change the https://schema.org/Article
in https://schema.org/NewsArticle

then enter:
https://schema.org/NewsArticle
itemprop = “description”
itemprop = “ArticleBody”

Then enter
itemscope itemtype = “https://schema.org/Organization”

<Meta itemprop = “url” content = “IMAGE 600×60.jpg”>

<Meta itemprop = “width” content = “600”>
<Meta itemprop = “height” content = “60”>

news about your appearance, good work

Post count: 142

I forgot this

itemprop = “articleSection”

Post count: 142

itemprop=”inLanguage” content=”it-IT”

Post count: 23312

Hello Orlando,

The property ArticleBody of schema.org/Article does not seem to be a required Google Rich Data property and it’s not reported by Google’s structured data tool as missing so it’s not a problem. I saw that you want to change the schema.org through adding some additional markup. This is not a simple task of doing this and if you are not aware of the steps which are needed to take in this regard, please consider hiring a freelancer/developer to help you because we cannot provide additional customizations, sorry!

Thanks for your understanding!

Post count: 142

Hi,

thema inside where I find the schema.org/article

Post count: 23312

Hello orlando,

If you want to change the schema.org/Article yo should check the theme core files and make there the changes, like this -> https://www.screencast.com/t/SPuinW5vjM7u

Thanks for your understanding!

Post count: 142

Thanks Catalin,
I managed to change the schema.org/Article in NewsArticle

1. I just need some help on two codes to add that I tried but did not work:

// The excerpt
$buffy .= ‘<meta itemprop=”description” content=”‘ . esc_attr( $this->post->post_the_excerpt) . ‘” />’;

// The category
$buffy .= ‘<meta itemprop=”articleSection” content=”‘ . esc_attr( $this->post->post_the_category) . ‘” />’;

2. and then I would like to remove this code: id = “post-7632″:

At the moment it is so:

<article id=”post-7632″ class=”post-7632 post type-post status-publish format-standard has-post-thumbnail hentry category-attualita” itemscope itemtype=”https://schema.org/NewsArticle”&gt;

I would like to make it:

<article class=”post-7632 post type-post status-publish format-standard has-post-thumbnail hentry category-attualita” itemscope itemtype=”https://schema.org/NewsArticle”&gt;

Appearance news about, good job

Post count: 22421

Hello,

1) It depends where you want to add the code. You will need to know what you are doing if you want to alter the theme code. This is not part of the theme support as it represents customization. We do not have a customization department. I suggest getting some help from a developer as we cannot help with this modification.

2) We do not recommend changing the theme id’s to classes as you will break the theme. You should leave the html markup as it is.

Thank you!

Post count: 142

Hi,

however I asked you just help these two codes, it does not seem too much to ask.

It ‘something I need, no other possibilities to find a solution.

/wp-content/themes/Newsmag/includes/wp_booster/td_module_single_base.php

I do not know why you did not add the itemprop = “description” for the schema.org/article

more I wanted to add the category with itemprop = “articleSection”

It does not seem to have asked for much.

Appearance news about, good job

Post count: 23312

Hello orlando,

If you want to add this markup you should make some changes through your code to do this. The id is in single or in the loop-single file, depending on what template is used by you, as you can see here -> https://www.screencast.com/t/adQEx54jJ5 and the meta should have to be added in td_module_single_base.php If these are not added in the post object you should use other specific functions like -> https://developer.wordpress.org/reference/functions/get_the_excerpt/ This may be a quick solution in this case. If you want to display more levels in our theme and if you are not aware of the steps which are needed to take in this regard, please consider hiring a freelancer/developer to help you because wee cannot provide additional customizations at the moment, sorry!

Thanks for your understanding!

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