Forum Replies Created
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
LucaLogosMember
Okay, here's the solution:
<a href="<?php the_permalink(); ?>#respond">Reply</a>
That will create a link directing you straight to reply box.
Thanks,
LucaLucaLogosMemberAnybody? 🙂
Maybe I wasn't clear enough. What I'm trying to do is to add such link:
http://website.com/page/#respond
Standard comments link looks like this:
http://website.com/page/#comments
so I can't just add another ID to it.I don't want to edit standard comment link, but add second one with different ID.
Luca
LucaLogosMemberNo, this doesn't work. I've however found a solution:
remove_action( 'genesis_after_entry', 'genesis_get_comments_template' ); add_action( 'genesis_after_entry', 'genesis_get_comments_template_after_post' ); function genesis_get_comments_template_after_post(){ global $post, $more; if ( ! post_type_supports( $post->post_type, 'comments' ) ) return; if ( is_home() || is_front_page() ) comments_template( '', true ); elseif ( is_singular() && ! in_array( $post->post_type, array( 'post', 'page' ) ) ) comments_template( '', true ); elseif ( is_singular( 'post' ) && ( genesis_get_option( 'trackbacks_posts' ) || genesis_get_option( 'comments_posts' ) ) ) comments_template( '', true ); elseif ( is_singular( 'page' ) && ( genesis_get_option( 'trackbacks_pages' ) || genesis_get_option( 'comments_pages' ) ) ) comments_template( '', true ); } global $withcomments; $withcomments = 1; comments_template( ' ', true );
LucaLogosMemberWell, shame on me. Turns out I didn't replace widget on site after updating php file, so old values still appeared.
The widget itself works perfectly fine.
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)