Error when install head-tags

Hi
When I try install head-tags, I get an error.
I don’t use the mars-theme
i use my own theme!


screenshoot_error|665x500

Hi @prainua,

Please try the following:

  • Verify that you’re executing npm install @frontity/head-tags from the root of a frontity project

  • If you’re getting this error from your root of your frontity project then you have a permissions issue related to NPM. This can be provoked for several reasons depending on the user you’re logged in, the permissions set in that folder, and so on (search in Google for: npm install missing write access or npm install ENOENT

    • :point_right: Most of the cases these permissions issues can be solved by doing (from the root of your frontity project) → rm -rf node_modules && rm -rf package-lock.json && npm install

Let us know how it goes

What do you plan to build with Frontity?

Thanks

and how clean up head ?)
i add in functions.php

remove_action( 'wp_head', 'rsd_link' );
remove_action( 'wp_head', 'wp_generator' );
remove_action( 'wp_head', 'feed_links', 2 );
remove_action( 'wp_head', 'feed_links_extra', 3 );
remove_action( 'wp_head', 'wlwmanifest_link' );
remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 );
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );
remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );

and it does not work

Hi @prainua,

What do you mean by that? What are you trying to achieve?

The @frontity/head-tags package in combination with REST API – Head Tags WordPress plugin allows you to directly add to your HTML the header tags defined in your WP installation

You can find more info about this here → Frontity release: REST API - Head Tags plugin and package

What do you plan to build with Frontity?

I want to remove from head this tags

HI @prainua,

In order to help you better, can you provide?

  • the URL of your REST API
  • a repo with the code you’re actually using in your frontity project

my wp site is local

i want to remove this tag

head-tags compatible with yoast 14.0.4?