Skip to main content
Ondrej's user avatar
Ondrej's user avatar
Ondrej's user avatar
Ondrej
  • Member for 8 years, 7 months
  • Last seen more than 4 years ago
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
comment
<title> blank after installing Metatag
I have developed it from scratch few years back. However, I don't think the theme would be a problem - as I wrote above, I read online that this is a common issue related to the Metatag module and that one has to call the methods above - but that's PHP, so it would be usable in D7 .tpl files, not in TWIG in D8 - and that's the question, I think: how to call this in a D8 TWIG template.
comment
<title> blank after installing Metatag
Ping :) I'll be grateful for any advice on this.
comment
<title> blank after installing Metatag
Thanks, zhilevan. I edited the question and added the code.
revised
<title> blank after installing Metatag
added 196 characters in body
Loading…
asked
Loading…
Loading…
accepted
comment
Using page field value in a metatag in <head>
Silly mistake. I did that, but still nothing.
comment
Using page field value in a metatag in <head>
yes, I renamed the function to mytheme_hook_node_view, where mytheme is the right name of my theme, but still no difference, the metatag does not appear in the code (of course, clearing caches)
comment
Using page field value in a metatag in <head>
Still nothing :-( I have put the code with my adjustments here: codeshare.io/5vANrK. I'd be really grateful for any help fixing this.