how to update html for "Reviews" section for supreme listing details tab
This topic contains 3 replies, has 2 voices, and was last updated by Kor 6 years, 6 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
October 15, 2018 at 9:12 pm #449764
How can i override this function to supreme functions.php
if (!function_exists(‘geodir_comment’)) {/**
* Comment HTML markup.
*
* @since 1.0.0
* @package GeoDirectory
* @global object $post The current post object.
* @param object $comment The comment object.
* @param string|array $args {
* Optional. Formatting options.
*
* @type object $walker Instance of a Walker class to list comments. Default null.
* @type int $max_depth The maximum comments depth. Default empty.
* @type string $style The style of list ordering. Default ‘ul’. Accepts ‘ul’, ‘ol’.
* @type string $callback Callback function to use. Default null.
* @type string $end-callback Callback function to use at the end. Default null.
* @type string $type Type of comments to list.
* Default ‘all’. Accepts ‘all’, ‘comment’, ‘pingback’, ‘trackback’, ‘pings’.
* @type int $page Page ID to list comments for. Default empty.
* @type int $per_page Number of comments to list per page. Default empty.
* @type int $avatar_size Height and width dimensions of the avatar size. Default 32.
* @type string $reverse_top_level Ordering of the listed comments. Default null. Accepts ‘desc’, ‘asc’.
* @type bool $reverse_children Whether to reverse child comments in the list. Default null.
* @type string $format How to format the comments list.
* Default ‘html5’ if the theme supports it. Accepts ‘html5’, ‘xhtml’.
* @type bool $short_ping Whether to output short pings. Default false.
* @type bool $echo Whether to echo the output or return it. Default true.
* }
* @param int $depth Depth of comment.
*/
function geodir_comment($comment, $args, $depth) {
$GLOBALS[‘comment’] = $comment;
switch ($comment->comment_type) :
case ‘pingback’ :
case ‘trackback’ :
// Display trackbacks differently than normal comments.
?>
<li <?php comment_class(‘geodir-comment’); ?> id=”comment-<?php comment_ID(); ?>”>
<p><?php _e(‘Pingback:’, ‘geodirectory’); ?> <?php comment_author_link(); ?> <?php edit_comment_link(__(‘(Edit)’, ‘geodirectory’), ‘<span class=”edit-link”>’, ‘</span>’); ?></p>
<?php
break;
default :
// Proceed with normal comments.
global $post;
?>
<li <?php comment_class(‘geodir-comment’); ?> id=”li-comment-<?php comment_ID(); ?>”>
<article id=”comment-<?php comment_ID(); ?>” class=”comment”>
<header class=”comment-meta comment-author vcard”>
<?php
/**
* Filter to modify comment avatar size
*
* You can use this filter to change comment avatar size.
*
* @since 1.0.0
* @package GeoDirectory
*/
$avatar_size = apply_filters(‘geodir_comment_avatar_size’, 44);
echo get_avatar($comment, $avatar_size);
printf(‘<cite><b class=”reviewer”>%1$s</b> %2$s</cite>’, get_comment_author_link(),
// If current post author is also comment author, make it known visually.
($comment->user_id === $post->post_author) ? ‘<span>’ . __(‘Post author’, ‘geodirectory’) . ‘</span>’ : ”
);
echo “<span class=’item’><small><span class=’fn’>$post->post_title</span></small></span>”;
printf(‘<time datetime=”%2$s” class=”dtreviewed”>%3$s<span class=”value-title” title=”%2$s”></span></time>‘, esc_url(get_comment_link($comment->comment_ID)), get_comment_time(‘c’),
/* translators: 1: date, 2: time */ sprintf(__(‘%1$s at %2$s’, ‘geodirectory’), get_comment_date(), get_comment_time())
);
?>
</header>
<!– .comment-meta –><?php if (‘0’ == $comment->comment_approved) : ?>
<p class=”comment-awaiting-moderation”><?php _e(‘Your comment is awaiting moderation.’, ‘geodirectory’); ?></p>
<?php endif; ?><section class=”comment-content comment”>
<?php comment_text(); ?>
</section>
<!– .comment-content –><div class=”comment-links”>
<?php edit_comment_link(__(‘Edit’, ‘geodirectory’), ‘<p class=”edit-link”>’, ‘</p>’); ?>
<div class=”reply”>
<?php comment_reply_link(array_merge($args, array(‘reply_text’ => __(‘Reply’, ‘geodirectory’), ‘after’ => ‘ <span>↓</span>’, ‘depth’ => $depth, ‘max_depth’ => $args[‘max_depth’]))); ?>
</div>
</div><!– .reply –>
</article>
<!– #comment-## –>
<?php
break;
endswitch; // end comment_type check
}}
October 16, 2018 at 4:43 am #449809Hi Geo,
Thanks for your post. Could you tell us a little bit more about what you’re trying to achieve there? Maybe customizing the template files are not required. Let us know how it goes.
Thanks!
October 16, 2018 at 5:50 am #449813I want change the some positions of the elements and add/remove some html from this comment box.
October 16, 2018 at 7:18 am #449817Hi Geo,
You can try using custom CSS code. What is it are you trying to change? Perhaps you can highlight it using screenshots?
Thanks!
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket