[ header_image] shortcode allows you display the current header image wherever you want. For example, you can get the header image into the Header Widget Area by using this shortcode in a text widget. The current standard or mobile header image will be displayed. Only the
<img ... > is displayed — the image will not be wrapped in a link to the site.
[header_image h='size' w='size' style='inline-style']
- w=’size’ h=’size’ – By default, no height or image properties are included with the header
<img ... >, which will result in an image scaled to fit into whatever the natural width of the enclosing HTML container is (the content area, a text widget, etc.). You may specify an explicit value (usually in px) for the height and width of the image.
- style=’inline-style-rules’ – Allows you to add inline style to wrap output of the shortcode. Don’t include the ‘style=’ or wrapping quotation marks. Do include a ‘;’ at the end of each rule. The output will look like
style="your-rules;"– using double quotation marks.