Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using a theme which works with Genesis Framework. The theme is called pinsomo & I'm wondering how to "move" comments count div to the bottom of the post.

Here is the demo: [[link has expired]]

You see the comment icon next to the title. I want to move it to the heart icon.

share|improve this question
2  
Please post relevant code, otherwise, we have no way to provide answers. –  Chip Bennett Feb 17 '13 at 14:46
    
The problem is that this is the first tiem I work with Genesis FW, or any FW, or any child theme. There are folders -> structure in themes/genesis and themes/pinsomo. I just need some suggestions where the SINGLE post layout is stored. Or something like this. Thanks! –  FakeHeal Feb 17 '13 at 14:52
1  
But Geneisis is a commercial Theme, so we don't have access to the code to give you that information, or to know if it is Genesis-specific or WordPress-specific. It may or may not have anything to do with Genesis, but without seeing the code, we have no way to know. –  Chip Bennett Feb 17 '13 at 15:01
    
Search your theme files for comments_number. If you can find that-- if the theme(s) even use that function-- then post the surrounding code. That is the bit you need to move. –  s_ha_dum Feb 17 '13 at 15:29
add comment

2 Answers

up vote 1 down vote accepted

You can use the genesis_post_info and genesis_post_meta filters in your child theme rather than modify the parent theme frameworks files which will be lost when you update Genesis.

Remove comments link from post info

add_filter( 'genesis_post_info', 'remove_post_info_comments_link' );

function remove_post_info_comments_link($post_info) {

$post_info = '[post_date] by [post_author_posts_link] [post_edit]';
return $post_info;
}

Add comments link to post meta

add_filter( 'genesis_post_meta', 'add_comments_post_meta' );

function add_comments_post_meta($post_meta) {

$post_meta = '[post_categories] [post_tags] [post_comments]';
return $post_meta;
}

Note: This code only works with themes running HTML 5 markup.

share|improve this answer
add comment

I've managed to do what I wanted.

I put this code in themes/genesis/lib/structure/post.php after the_content() in function genesis_do_post_content() { .. }

$post_info =  ' [post_comments] ';
printf( '%s', apply_filters( 'genesis_post_info', $post_info ) );

And everything works as I expected. I hope someone finds this useful. :)

This wasn't a good solution, please check the accepted answer. :)

share|improve this answer
    
FakeHeal, you don't want to do that. Editing anything in themes/genesis is editing the Genesis framework directly, which means that an update to Genesis has the potential (and the likelihood) of destroying those changes you've made. With Genesis, each theme has a file called functions.php. Using functions.php you can programmatically override a lot of the built-in Genesis behavior. That's where you want to make your changes. –  user32953 May 17 '13 at 3:04
    
Not a good solution as all parent theme modifications will be lost when you update Genesis. Always use a filter to change the parent themes output via your child theme which is always safe from parent theme updates. –  Brad Dalton Mar 28 at 19:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.