hello i have been looking for the head tags on my posts by clicking on “text” in the edit post page but it is missing on all my posts and pages. I even went to “appearance”, “editor” to check “Theme Header” but it isnt there either- i have attached a screenshot of what i see. Does anyone know how i can get the head section back again?
<?php // ============================================================================= // HEADER.PHP // ----------------------------------------------------------------------------- // The site header. // ============================================================================= x_get_view( 'header', 'base' );Hi There,
The <head> tag is located under x/framework/legacy/cranium/headers/views/global/_header.php file:
<?php
// =============================================================================
// VIEWS/GLOBAL/_HEADER.PHP
// -----------------------------------------------------------------------------
// Declares the DOCTYPE for the site and includes the <head>.
// =============================================================================
?>
<!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="x-root" class="x-root">
<?php do_action( 'x_before_site_begin' ); ?>
<div id="top" class="site">
<?php do_action( 'x_after_site_begin' ); ?>
Do you want to add something to the head tag? If you’ve already setup a child theme, you just need to add this sample code under functions.php file locates in your child theme:
add_action( 'wp_head', 'x_custom_head' );
function x_custom_head(){
?>
<!-- Your scripts/metas will go here -->
<?php
}
Hope it helps 
Thank you, i thought i had deleted the head section when i removed the hear widgets from the widget area. I have checked my site using your instructions and i still have all this html intact which is great!. I thought i was going to have to delete my theme and re load it because i could see any html when i clicked on my header.php file - but that was obviously the wrong one.
Can i insert my adsense code between these head tags?
Thank you so much.
Hi There,
Yes, you can. You just need to replace the <!-- Your scripts/metas will go here --> code with your adsense code in the provided code above.
Let us know how it goes!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.