Shortcode: [site_title] / [site_tagline] – Display Site Title or Tagline
[ site_title style=”style” matchtheme=false], [ site_tagline style=”style” matchtheme=false]
The [ site_title]
and [ site_tagline]
shortcodes allow you display the current site title and site tagline. This can be useful in a text widget in the Header Widget Area, for example.
Note: If you want to position the content of a text widget within the a cell of the Header Widget Area, you could use the following example:
[ site_title style='font-size:150%;position:absolute;padding-left:20px;padding-top:30px;']
Shortcode usage:
[ site_title style='inline-style' matchtheme=false]
[ site_tagline style='inline-style' matchtheme=false]
- 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. - matchtheme=true – Allows you to add match the theme styling as defined in the site header if set to true. This will match the color/style/font of the header version of the site title and tagline with the exception of hide settings. The shortcode version will not be hidden on any device unless you also wrap the shortcode with a [ show_if/hide_if] shortcode.