我想使用矢量漩涡设计我的网站标题,我添加了@font-face 和所需的字体文件。
这是我的 header.php 代码,我想在站点品牌类的顶部和底部使用矢量漩涡
<header id="masthead" class="site-header" role="banner">
<span class="site-branding-design"></span>
<div class="site-branding">
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
</div>
<span class="site-branding-design"></span>
<nav id="site-navigation" class="main-navigation" role="navigation">
<h1 class="menu-toggle"><?php _e( 'Menu', 'minima-royale' ); ?></h1>
<div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'minima-royale' ); ?>"><?php _e( 'Skip to content', 'minima-royale' ); ?></a></div>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav><!-- #site-navigation -->
</header><!-- #masthead -->
CSS 代码:-
.site-branding-design{
font-family: 'Conv_Nymphette';
font-size: 16px;
content: "a";
}
字体的字符映射表 http://www.fontspace.com/nymphont/nymphette/11741.charmap