Since: 1.0 Last Updated:
Back to Main Index

Outputs your custom code after the logo wrapper opening div, and before the code inside the logo wrapper (such as the image, site description, site title etc)

Location: partials/header-logo.php

Code output appears after:

Code output appears before:

The following diagram illustrates the difference between the layers_before_logo hook  (A) and the layers_before_logo_inner  hook (B)



Because this hook outputs content before the opening logo div, it can be used for any code that you want to insert into the logo container that you do not necessarily want to inherit the .logo class styling.  Code inserted with this hook will conform to the header layout option (boxed or full-width) but must be styled independently with regards to special positioning, margins, padding etc.

One use of this hook might be to add something like a row of social icons that appears above the logo content