php 后小部件后的创世纪。

Posted

tags:

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

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

//* Hook after post widget area after post content
add_action( 'genesis_after_post_content', 'sp_after_post_widget' );
	function sp_after_post_widget() {
	if ( is_singular( 'post' ) )
		genesis_widget_area( 'after-post', array(
			'before' => '<div class="after-post widget-area">',
			'after' => '</div>',
	) );
}
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

//* Hook widget area after post content
genesis_widget_area( 'after-post', array(
	'before' => '<div class="after-post widget-area">',
	'after' => '</div>',
) );
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

//* Register after post widget area
genesis_register_sidebar( array(
	'id'            => 'after-post',
	'name'          => __( 'After Post', 'themename' ),
	'description'   => __( 'This is a widget area that can be placed after the post', 'themename' ),
) );

以上是关于php 后小部件后的创世纪。的主要内容,如果未能解决你的问题,请参考以下文章

HomeScreen 重新启动后小部件冻结

更改设备语言后小部件单击不起作用

配置更改后小部件不刷新

应用更新后小部件消失了

php 如何在创世纪2.0框架中添加后窗口小部件区域 - WordPress提示

php 帖子后的创世纪盒子。