Comments plus not workin on my theme (yootheme)

Good day!

I’m pretty sure I have followed all the directions properly in installing and activating the plugin. Twitter and Facebook api and password are entered. I even tried a few other things found on similar posts in these forums … yet to no avail.

Any suggestions?

Thank you in advance for your help!! :slight_smile:

  • Timothy
    • Chief Pigeon

    Hey paintedtown.

    When you say it doesn’t work…. How doesn’t it work?

    It doesn’t display at all?

    It doesn’t connect to an API?

    The styling is off?

    If you could please elaborate, that will help use to find the cause of the issue. :slight_smile:

    Take care.

  • Timothy
    • Chief Pigeon

    Hey again. :slight_smile:

    It looks like it might be an issue with how the theme handles comments. But we have an option to add your own hooks. :slight_smile:

    Admin –> Settings –> Commenting Plus

    wp-admin/options-general.php?page=wdcp

    You will see the hook information there and how you can define custom ones.

    You can then add manual hooks to your theme, once you find the comment form within the themes code you would put something like the following before:

    <?php do_action("comment_form_before");?>

    And this one after:

    <?php do_action("comment_form_after");?>

    That will then replace the form within your theme.

    Hope this helps.

  • paintedtown
    • Flash Drive

    Step 1: Locate File to Copy:

    /yoo_[theme-name]_wp/warp/systems/wordpress/layouts/comments.php

    Step 2: Paste new copy into the Custom Layouts Overrides folder:

    /yoo_[theme-name]_wp/layouts/

    Step 3: Locate the line below in the new copied file:

    <?php do_action(‘comment_form’, $post->ID); ?>

    Step 4: Replace with the following lines:

    <?php do_action( ‘comment_form_before’ ); ?>

    <?php do_action(‘comment_form’, $post->ID); ?>

    <?php do_action( ‘comment_form_after’ ); ?>


    This is what I did … it did look right but now has both old and new comment.

    Also the facebook isn’t working properly! When I click button all that happens is the FLOAT SOCIAL doubles. One on top of the other.

    Thanks!

    http://calgary.paintedthetown.com/cafes

  • Timothy
    • Chief Pigeon

    Hey again.

    You didn’t need to send me your whole wordpress install :wink:

    Anyway, you can open your :

    wp-content/yo_cloud_wp/comment.php

    Then find the last line:

    echo $warp['template']->render('comments');

    And replace it with this:

    do_action('comment_form_before');
    echo $warp['template']->render('comments');
    do_action('comment_form_after');

    That will do it for you. :slight_smile:

  • Timothy
    • Chief Pigeon

    Hey again! :slight_smile:

    Sorry I missed your reply here, I took another look at that theme for you. Go edit this file:

    /wp-content/themes/yoo_cloud_wp/warp/systems/wordpress/layouts/comments.php

    Then find the form:

    <?php else : ?>
    <form class="short" action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post">

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

    <?php global $user_identity; ?>

    <p class="user"><?php printf(__('Logged in as <a href="%s">%s</a>.', 'warp'), get_option('siteurl').'/wp-admin/profile.php', $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account', 'warp'); ?>"><?php _e('Log out &raquo;', 'warp'); ?></a></p>

    <?php else : ?>

    <?php $req = get_option('require_name_email');?>

    <div class="author <?php if ($req) echo "required"; ?>">
    <input type="text" name="author" placeholder="<?php _e('Name', 'warp'); ?> <?php if ($req) echo "*"; ?>" value="<?php echo esc_attr($comment_author); ?>" size="22" <?php if ($req) echo "aria-required='true'"; ?> />
    </div>

    <div class="email <?php if ($req) echo "required"; ?>">
    <input type="text" name="email" placeholder="<?php _e('E-mail', 'warp'); ?> <?php if ($req) echo "*"; ?>" value="<?php echo esc_attr($comment_author_email); ?>" size="22" <?php if ($req) echo "aria-required='true'"; ?> />
    </div>

    <div class="url">
    <input type="text" name="url" placeholder="<?php _e('Website', 'warp'); ?>" value="<?php echo esc_attr($comment_author_url); ?>" size="22" />
    </div>

    <?php endif; ?>

    <div class="content">
    <textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea>
    </div>

    <div class="actions">
    <input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'warp'); ?>" />
    <?php comment_id_fields(); ?>
    </div>
    <?php do_action('comment_form', $post->ID); ?>

    </form>

    <?php endif; ?>

    Then add the hooks in like so:

    <?php else :
    do_action('comment_form_before'); ?>
    <form class="short" action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post">

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

    <?php global $user_identity; ?>

    <p class="user"><?php printf(__('Logged in as <a href="%s">%s</a>.', 'warp'), get_option('siteurl').'/wp-admin/profile.php', $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account', 'warp'); ?>"><?php _e('Log out &raquo;', 'warp'); ?></a></p>

    <?php else : ?>

    <?php $req = get_option('require_name_email');?>

    <div class="author <?php if ($req) echo "required"; ?>">
    <input type="text" name="author" placeholder="<?php _e('Name', 'warp'); ?> <?php if ($req) echo "*"; ?>" value="<?php echo esc_attr($comment_author); ?>" size="22" <?php if ($req) echo "aria-required='true'"; ?> />
    </div>

    <div class="email <?php if ($req) echo "required"; ?>">
    <input type="text" name="email" placeholder="<?php _e('E-mail', 'warp'); ?> <?php if ($req) echo "*"; ?>" value="<?php echo esc_attr($comment_author_email); ?>" size="22" <?php if ($req) echo "aria-required='true'"; ?> />
    </div>

    <div class="url">
    <input type="text" name="url" placeholder="<?php _e('Website', 'warp'); ?>" value="<?php echo esc_attr($comment_author_url); ?>" size="22" />
    </div>

    <?php endif; ?>

    <div class="content">
    <textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea>
    </div>

    <div class="actions">
    <input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'warp'); ?>" />
    <?php comment_id_fields(); ?>
    </div>
    <?php do_action('comment_form', $post->ID); ?>

    </form>

    <?php do_action('comment_form_after');
    endif; ?>

    Sorry it took me a little while to get back to you. This should sort it. :slight_smile:

    Take care.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.