Forum Replies Created
-
AuthorPosts
-
SkywalkerMember
Thanks again.
SkywalkerMemberThanks so much 🙂 Any priority of 10 or higher seems to accomplish what I want - the content shows after the post title.
I read that priority tutorial though and I'm still confused however - how would we know what priority is needed for genesis_entry_header to place it before or after the post title, without trial and error?
As some of the new hooks take the place of multiple old loop hooks, what parameters do we need to input to match the locations of the old hooks? Is there a reference that lists this?
SkywalkerMemberThanks for the info 🙂
So - with genesis_entry_header, how does one replicate the genesis_after_post_title and genesis_before_post_content hooks?
By default it seems to do genesis_before_post_title. I tried added parameters 1, 2, and 3, but all were in the before post title location.
SkywalkerMemberThanks. I wanted to see if the hook locations genesis_before_post_title and genesis_after_post_title worked, so I added the following code to functions.php:
genesis_register_sidebar( array( 'id' => 'before-post-title', 'name' => __( 'Before Post Title', 'magazine' ), 'description' => __( 'This goes before post title', 'magazine' ), ) ); add_action( 'genesis_before_post_title', 'wpsites_widget_before_post_title' ); function wpsites_widget_before_post_title() { if ( is_page() && is_active_sidebar('before-post-title') ) { genesis_widget_area( 'before-post-title', array( 'before' => '<div class="before-post-title" class="widget-area">', 'after' => '</div>', ) ); } } genesis_register_sidebar( array( 'id' => 'after-post-title', 'name' => __( 'After Post Title', 'magazine' ), 'description' => __( 'This goes after post title', 'magazine' ), ) ); add_action( 'genesis_after_post_title', 'wpsites_widget_after_post_title' ); function wpsites_widget_after_post_title() { if ( is_page() && is_active_sidebar('after-post-title') ) { genesis_widget_area( 'after-post-title', array( 'before' => '<div class="after-post-title" class="widget-area">', 'after' => '</div>', ) ); } }
But while the widget locations show up under Appearance>Widgets, and I have added Text widgets to those widget locations, there doesn't seem to be any effect. The text I added is not present.
Is there a bug in my code?
-
AuthorPosts