| 开发者 |
izaacj
IzaacJ |
|---|---|
| 更新时间 | 2017年3月12日 21:01 |
| PHP版本: | 4.7 及以上 |
| WordPress版本: | 4.7.3 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/izz0ware-advanced-2017 directory, or install the plugin through the WordPress plugins screen directly.For the header logo feature you'll need to make some minor changes to your theme, preferably by using a childtheme. The file you need to modify is:
wp-content/themes/twentyseventeen/template-parts/header/site-branding.phpwp-content/themes/[childthemename]/template-parts/header/site-branding.php - If this is not in your childtheme, copy it from Twenty Seventeen.<div class="site-branding-text"> and make a new line right below it. That's where you'll paste the following code:
```
```
When that is added, theres only two minor changes left to do.
Locate:
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
And replace <?php bloginfo( 'name' ); ?> with <?= $text; ?>.
Locate:
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
And replace <?php bloginfo( 'name' ); ?> with <?= $text; ?>.
Now you're done! Header Logo should work as soon as you set an image in the Customizer.