CMS Development

cswarbreck
Member | Partner
Member | Partner

Head meta tags being moved into body

SOLVE

In our hubspot template, meta tags that are in the head are being moved into the body when the template loads. We discovered this issue when running our pages through the SEO tool in hubspot and it flagged that the meta viewport tags weren't in the head. Has anyone encountered this issue? 

1 Accepted solution
Anton
Solution
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Head meta tags being moved into body

SOLVE

Hi @cswarbreck

 

where do you insert the meta tags in the template exactly?

screenshot from a blank drag&drop templatescreenshot from a blank drag&drop template

1,2,3 and 5 are not for <head>-tags.

 

If you put it into 4 then it should be in the <head>-tag.

 

If there's an issue, you can try to solve it with a small jquery

<script>
$('head').append( 'INSERT-YOUR-META-TAG-HERE' );
</script>

it should look something like this:

<script>
$('head').append( '<meta name="robots" content="noindex,nofollow">' );
</script>

 

regards,

Anton

Anton Bujanowski Signature

View solution in original post

0 Upvotes
2 Replies 2
eemcc
Participant

Head meta tags being moved into body

SOLVE

I am having this same issue. The "Accepted Solution" is not a solution for me. I build my own templates from scratch and insert the meta tags inside the head tag.

0 Upvotes
Anton
Solution
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Head meta tags being moved into body

SOLVE

Hi @cswarbreck

 

where do you insert the meta tags in the template exactly?

screenshot from a blank drag&drop templatescreenshot from a blank drag&drop template

1,2,3 and 5 are not for <head>-tags.

 

If you put it into 4 then it should be in the <head>-tag.

 

If there's an issue, you can try to solve it with a small jquery

<script>
$('head').append( 'INSERT-YOUR-META-TAG-HERE' );
</script>

it should look something like this:

<script>
$('head').append( '<meta name="robots" content="noindex,nofollow">' );
</script>

 

regards,

Anton

Anton Bujanowski Signature
0 Upvotes