Skip to content
themeforge
EN
Start free
Menu
  1. Home
  2. Attribute reference
  3. wp="site-name"
Core Site settings

The site title, its tagline and a link home

wp="site-name"

The site’s title and short tagline already live in the WordPress settings, so they need no fields. These values show them where your design has them: in the header, the footer, next to the logo.

Where it goes

wp="site-name" goes on the element with the title, wp="site-desc" on the tagline.

wp="home-url" goes on an <a> link: its href gets the home page address. On a multilingual site, the home page of the current language.

Example: the logo in the header

Markup index.html
<header class="header">
  <a class="logo" href="/" wp="home-url"><span wp="site-name">Warm Corner</span></a>
  <p class="tagline" wp="site-desc">Coffee for slow mornings</p>
</header>
In the admin Settings → General
Site Title Warm Corner
Tagline Coffee and pastries since 2019
On the site every page
Warm Corner

Coffee and pastries since 2019

The client changed the tagline in the settings, and the header changed on every page.

What matters

  • The title and tagline are edited in Settings → General: “Site Title” and “Tagline”.
  • Make a picture logo a site settings field: opt-image.
Alternative spelling

wp="site_name" works the same: the build gives an identical theme.

Ready when you are

See your site’s WordPress admin before you pay.