Forums

change the comments position in fusion theme (19 posts)

  1. moonview
    Member
    Posted 3 years ago #

    Hello friend of wordpress community

    this is my first time here, i hope somebody can help with my problem, thanks in advance.

    My problem is the next:
    I have set the fusion theme for my wordpress, in this theme the notification about how comments has a post appear down of the post, i want to know, how i can change this position to above of the post.

    i hove you can understand.

    THANKS

  2. t31os
    Member
    Posted 3 years ago #

    You want to display the comments above the post?

  3. moonview
    Member
    Posted 3 years ago #

    hello t31ox
    thanks for answer,

    No, i just want to display the notification about how comment has a post that appear down of the post.

    Example:
    this is the normal position of comments notification
    /**********************/
    *****this is a post****
    /************************/
    here down at the right appear 1 comment

    i want that appear like this
    1 comment
    /**********************/
    *****this is a post****
    /************************/

    thanks for any answer please

  4. t31os
    Member
    Posted 3 years ago #

    I'm still not understanding you... :(

    Can you show me another example of what you want to do?

  5. moonview
    Member
    Posted 3 years ago #

    mmm ok let me see...

    how do you know how many comments has a post without counting one by one??

    answer: cause worpress show to you that information right, for example 4 comments.

    the position of this notification change depending the theme.

    In inove theme, the notification of how many comments has a post appear before of the post like follow:

    comment 2 comments
    *******************************************************************
    *******************************************************************
    post of something
    *******************************************************************
    *******************************************************************

    in fusion theme this notification appear like follow:

    *******************************************************************
    *******************************************************************
    post of something
    *******************************************************************
    *******************************************************************
    2 comments

    i want this notificacion of how many comments has the post appear like in inove theme, before of the post.

    i hope you can understand now, maybe my english is not so good cause im from Panama, Central America.

    thanks for your time

  6. t31os
    Member
    Posted 3 years ago #

    Ah right i see, not on the actual post page, but on the index where you see the list of posts...

    Can you plonk your index.php code here (using ) so i can see what your index is doing...

  7. moonview
    Member
    Posted 3 years ago #

    `<?php get_header(); ?>

    <!-- main content -->
    <div id="main-content">

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <!-- post -->
    <div <?php post_class() ?> id="post-<?php the_ID(); ?>">

    <h2>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h2>

    <!-- story header -->
    <div class="postheader">
    <div class="postinfo">
    <p>
    <?php printf(__('Posted by: %s in %s'),''. get_the_author() .'',get_the_category_list(', ')) ?> <?php printf(__(" on ")).the_time('F jS, Y') ?>

    <span class="editlink"><?php edit_post_link(''); ?></span></p>
    </div>
    </div>
    <!-- /story header -->

    <div class="postbody entry">
    <?php the_content('Read the rest of this entry »'); ?>
    </div>
    <?php
    $posttags = get_the_tags();
    if ($posttags) { ?>
    <p class="tags"><?php the_tags(''); ?></p>
    <?php } ?>
    <p class="postcontrols">
    <?php
    global $id, $comment;
    $number = get_comments_number( $id );
    ?>
    comments" href="<?php comments_link(); ?>"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
    </p>
    <br clear="all" />
    </div>
    <!-- /post -->

    <?php endwhile; ?>

    <div class="navigation">
    <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
    <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
    <br clear="all" />
    </div>

    <?php else : ?>

    <h2>Not Found</h2>
    <p class="error">Sorry, but you are looking for something that isn't here.</p>
    <?php get_search_form(); ?>

    <?php endif; ?>

    </div>
    <!-- /main content -->

    </div>
    <!-- /main -->
    </div>
    <!-- /main wrapper -->

    <?php get_sidebar(); ?>

    <!-- clear main & sidebar sections -->
    <br clear="left" />
    <!-- /clear main & sidebar sections -->

    <?php get_footer(); ?>

    there is the index.php

  8. t31os
    Member
    Posted 3 years ago #

    <p class="postcontrols">
    <?php
    global $id, $comment;
    $number = get_comments_number( $id );
    ?>
    comments" href="<?php comments_link(); ?>"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
    </p>

    Thats the part to show the comment number...

    *Backup your file first*

    Take the part mentioned above and place it where you want it. I don't know either of those themes or how the content looks on the page...

    You could try this...

    <?php get_header(); ?>

    <!-- main content -->
    <div id="main-content">

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <!-- post -->
    <div <?php post_class() ?> id="post-<?php the_ID(); ?>">

    <h2>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h2>

    <!-- story header -->
    <div class="postheader">
    <div class="postinfo">
    <p>
    <?php printf(__('Posted by: %s in %s'),''. get_the_author() .'',get_the_category_list(', ')) ?> <?php printf(__(" on ")).the_time('F jS, Y') ?>

    <span class="editlink"><?php edit_post_link(''); ?></span></p>

    <p class="postcontrols">
    <?php
    global $id, $comment;
    $number = get_comments_number( $id );
    ?>
    comments" href="<?php comments_link(); ?>"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
    </p>
    </div>
    </div>
    <!-- /story header -->

    <div class="postbody entry">
    <?php the_content('Read the rest of this entry »'); ?>
    </div>
    <?php
    $posttags = get_the_tags();
    if ($posttags) { ?>
    <p class="tags"><?php the_tags(''); ?></p>
    <?php } ?>
    <br clear="all" />
    </div>
    <!-- /post -->

    <?php endwhile; ?>

    <div class="navigation">
    <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
    <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
    <br clear="all" />
    </div>

    <?php else : ?>

    <h2>Not Found</h2>
    <p class="error">Sorry, but you are looking for something that isn't here.</p>
    <?php get_search_form(); ?>

    <?php endif; ?>

    </div>
    <!-- /main content -->

    </div>
    <!-- /main -->
    </div>
    <!-- /main wrapper -->

    <?php get_sidebar(); ?>

    <!-- clear main & sidebar sections -->
    <br clear="left" />
    <!-- /clear main & sidebar sections -->

    <?php get_footer(); ?>`

    I'm not sure if that positions it well, give it a shot...

  9. t31os
    Member
    Posted 3 years ago #

    Seems the CODE doesn't work twice in one post when you plonk in particular chunks of code...

    Mods i've tried doing it 3 times with backticks and it's still not working correctly....

    Me thinks BBPress has a few little bugs... :)

  10. moonview
    Member
    Posted 3 years ago #

    then what you advice me to do??

  11. t31os
    Member
    Posted 3 years ago #

    See my post, the code is there, i was pointing out that it hasn't come up in a box...

    See code above, i've moved the comments number for you, copy and paste (backup your file first).

  12. moonview
    Member
    Posted 3 years ago #

    ok you right friend, i did should have thing of that jeje:)

    thank you very much for your help t31os.

    God Bless You.

  13. t31os
    Member
    Posted 3 years ago #

    You're welcome.. ;-)

  14. moonview
    Member
    Posted 3 years ago #

    do you Know maybe, how to create a code that show a link for comment next to comments number.

    example:
    comment 2 comments
    *******************************************************************
    *******************************************************************
    post of something
    *******************************************************************
    *******************************************************************

    excuse me if i ask too much, im a beginner with wordpress

    thanks

  15. t31os
    Member
    Posted 3 years ago #

    The comment number should already link to comments...

    You want 2 links to comments then?

  16. moonview
    Member
    Posted 3 years ago #

    good morning friend t31os

    yes cause maybe some people can think that "# comments" means that they just gonna read others comments and not make a comment.

    you know it is just for help the people make comments.

    thanks for your help.

  17. t31os
    Member
    Posted 3 years ago #

    Ok, so change this...

    <p class="postcontrols">
    <?php
    global $id, $comment;
    $number = get_comments_number( $id );
    ?>
    comments" href="<?php comments_link(); ?>"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
    </p>

    For this....

    <p class="postcontrols">
    <a href="<?php comments_link(); ?>">YOUR NEW LINK NAME</a> |
    <?php
    global $id, $comment;
    $number = get_comments_number( $id );
    ?>
    comments" href="<?php comments_link(); ?>"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
    </p>

    So basically just create a new line after...

    <p class="postcontrols">

    Adding in....

    <a href="<?php comments_link(); ?>">YOUR NEW LINK NAME</a> |

    Of course you can change the seperator for something else if you don't want a |.

  18. moonview
    Member
    Posted 3 years ago #

    Ready

    Thank you t31os for your useful help friend.

    JESUS LOVE YOU.

  19. t31os
    Member
    Posted 3 years ago #

    You're welcome ;)

Topic Closed

This topic has been closed to new replies.

About this Topic