Posts: 28
Threads: 9
Joined: Oct 2020
Hey guys,
quick question: looking for the constructor for the meta data in the <head> like meta description, canonical tag etc. (the stuff that gets called by get_header() )
I've been searching for 15 minutes now but apparently I'm blind. Where is it located?
Posts: 44
Threads: 8
Joined: May 2014
(2022-01-19, 00:27:59)Bolkonskij Wrote: Hey guys,
quick question: looking for the constructor for the meta data in the <head> like meta description, canonical tag etc. (the stuff that gets called by get_header() )
I've been searching for 15 minutes now but apparently I'm blind. Where is it located?
admin/inc/theme_functions.php
line 263. -> function get_header($full=true)
Posts: 1,927
Threads: 88
Joined: Apr 2010
(2022-01-19, 00:27:59)Bolkonskij Wrote: Hey guys,
quick question: looking for the constructor for the meta data in the <head> like meta description, canonical tag etc. (the stuff that gets called by get_header() )
I've been searching for 15 minutes now but apparently I'm blind. Where is it located?
Use the I18N plugin. It helps to manipulate meta tags.
Code:
<?php function_exists('get_i18n_header') ? get_i18n_header(true,array('generator', 'canonical', 'keywords', 'description')) : get_header(); ?>
Posts: 28
Threads: 9
Joined: Oct 2020
Thanks both of you for answering, especially smdp-1971 - that was exactly the code line I was missing.
@Oleg06 good suggestion, but doesn't help me. I needed to change the syntax to HTML 3.2, because that's what
my page is coded in for maximum retro browser compatibility. Since HTML 3 didn't know any self-closing tags, I had to change the /> to a simple > to pass the validator. Yeah, VERY specific problem, i know ;-)