@frontity/yoastpackage to your project:
<Html2React>component which is used to render the meta tags can be processor intensive.
<title>tag continues to be rendered in the client while the site is being navigated so that the current page/post title will be displayed in the browser tab. Althougth the
<Html2React>is processor intensive it is not used to render the title tag, so client-side performance will not be impacted.
@frontity/yoastpackage also requires two Frontity parameters in order to work:
state.frontity.url: The URL of your site. Usually defined in the
@frontity/yoastpackage adds the Yoast meta to pages, and to single posts and CPTs. In order to have the Yoast SEO meta on post/CPT archive pages the following PHP code snippet should be added to the WordPress installation. It can be added either in the active theme's
functions.phpfile or by using a plugin such as Code Snippets.
yoast_metafield for post/CPT archives – in the REST API responses. It adds the
typeproperty inside the
\_linksfield of post entities when the
?_embed=truequery parameter is used.
?_embed=truequery parameter when making requests to the WP REST API.