php Genesis标题。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php Genesis标题。相关的知识,希望对你有一定的参考价值。

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

//* Remove the header right widget area
unregister_sidebar( 'header-right' );
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

//* Remove the site title
remove_action( 'genesis_site_title', 'genesis_seo_site_title' );
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

//* Remove the site description
remove_action( 'genesis_site_description', 'genesis_seo_site_description' );
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

//* Modify the header URL - HTML5 Version
add_filter( 'genesis_seo_title', 'child_header_title', 10, 3 );
function child_header_title( $title, $inside, $wrap ) {
    $inside = sprintf( '<a href="http://example.com/" title="%s">%s</a>', esc_attr( get_bloginfo( 'name' ) ), get_bloginfo( 'name' ) );
    return sprintf( '<%1$s class="site-title">%2$s</%1$s>', $wrap, $inside );
}
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

//* Modify the header URL - XHTML Version
add_filter('genesis_seo_title', 'sp_seo_title', 10, 3);
function sp_seo_title($title, $inside, $wrap) {
	$inside = sprintf( '<a href="http://www.yourdomain.com" title="%s">%s</a>', esc_attr( get_bloginfo('name') ), get_bloginfo('name') );
	$title = sprintf('<%s id="title">%s</%s>', $wrap, $inside, $wrap);
	return $title;
}

以上是关于php Genesis标题。的主要内容,如果未能解决你的问题,请参考以下文章

php Genesis标题。

php Genesis条目标题。

php 标题中的Elementor + Genesis CSS

php Genesis:删除条目标题中的条目元

php 每当使用'h1'时,强制Genesis网站标题使用'p'。

php 精选图片,genesis.php