• Resolved summatix

    (@summatix)


    Great plugin!

    How do people set titles for pages that use the Blank Slate template? I edited the plugin to add the following:

    <title><?php wp_title(); ?></title>

    This works for me, so I’m wondering if there’s a reason it’s not already present or if there’s another way to add titles (e.g. through wp_head()) that I’m overlooking.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Aaron Reimann

    (@areimann)

    Blank Slate doesn’t modify anything in the <head> of the page. So, your default <?php wp_title(); ?> that is called in on your normal page is also used on Blank Slate.

    A second way to answer this question (just to be clear), just edit the page title like you would on a normal Page or Post.

    Thread Starter summatix

    (@summatix)

    I see, you’re making the assumption that the theme supports title-tag introduced in WordPress 4.1. It’s not great to make assumptions ??

    I’m not sure if you accept PRs since I couldn’t find a public repository. I suggest adding the following to blank-slate/blank-slate-template.php after <meta charset="<?php bloginfo( 'charset' ); ?>">:

      <?php if ( ! get_theme_support( 'title-tag' ) ): ?>
        <title><?php wp_title(); ?></title>
      <?php endif; ?>
    Plugin Author Aaron Reimann

    (@areimann)

    The public repo is here:
    https://github.com/aaronreimann/blank-slate

    Are you using 4.0 or below?

    Thread Starter summatix

    (@summatix)

    I’m using WordPress 4.8.2. I’ll create a PR.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Showing page title’ is closed to new replies.