Home › Forums › Themes Support › Claue › translation or css bug
- This topic has 23 replies, 2 voices, and was last updated 6 years, 5 months ago by Rahim.
-
AuthorPosts
-
-
July 21, 2018 at 3:35 pm #23002
Hi Harry,
Could you please check this : http://take.ms/kQRxN
You can see that in the Look.ir/mag
How can I fix the space?
It’s translation or css?Thank you.
Rahim Vaziri
CEO & Founder at Look.ir -
July 22, 2018 at 5:16 pm #23020
Hi Rahim,
Please add below code
.rtl .post-meta span:not(:last-child) { margin-left: 5px; }
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 22, 2018 at 5:22 pm #23021
Harry,
I just realized that under the blog post, there is the comment counter, so for the better UX and having better post title maybe there is no need to have the comments quantity on the title!
How can I hide it in the title?
Regards. 🙂
Rahim Vaziri
CEO & Founder at Look.ir -
July 22, 2018 at 5:26 pm #23022
-
July 23, 2018 at 10:36 am #23062
Hi Rahim,
It have space between comment number with categories.
The title style with bigger font size and user can see the title on the first so we don’t think the change can make it better.
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 23, 2018 at 1:05 pm #23067
Yeah Harry,
After the given code, I see the space between name of the author and categories.
So how can I hide the comment counter in the title?
Regards.
Rahim Vaziri
CEO & Founder at Look.ir -
July 23, 2018 at 6:03 pm #23101
Hi Rahim,
Please add below code to functions.php in claue-child
if ( ! function_exists( 'jas_claue_post_meta' ) ) { function jas_claue_post_meta() { $output = ''; // Post author $output .= sprintf( esc_html__( '%1$s', 'claue' ), '<span class="author vcard pr" ' . jas_claue_schema_metadata( array( 'context' => 'author', 'echo' => false ) ) . '>' . esc_html__( 'By ', 'claue' ) . '<a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>' ); // Post categories $categories = get_the_category_list( esc_html__( ', ', 'claue' ) ); if ( $categories ) { $output .= sprintf( '<span class="cat pr">' . esc_html__( 'In %1$s', 'claue' ) . '</span>', $categories ); } // Post comments if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { $comments_number = get_comments_number(); if ( '1' === $comments_number ) { $output .= '<span class="comment-number pr"><a href="' . get_comments_link() . '">' . sprintf( _x( 'Comment', 'comments title', 'claue' ), get_the_title() ); $output .= '</a></span>'; } else { $output .= '<span class="comment-number pr"><a href="' . get_comments_link() . '">' . sprintf( _nx( 'Comment', 'Comments', $comments_number, 'comments title', 'claue' ), number_format_i18n( $comments_number ), get_the_title() ); $output .= '</a></span>'; } } echo apply_filters( 'jas_claue_post_meta', '<div class="post-meta fs__12">' . $output . '</div>' ); } }
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 23, 2018 at 6:12 pm #23108
Hi Harry,
I added the code and now it’s like this :
Rahim Vaziri
CEO & Founder at Look.ir -
July 23, 2018 at 6:21 pm #23109
Harry the above image that I sent you is taken from Chrome.
In the Firefox the name of the Author is cut.
Consider the last alphabet of the name :
I always forgot to discus this with you. I remember this in the earlier theme’s version
Rahim Vaziri
CEO & Founder at Look.ir -
July 23, 2018 at 11:06 pm #23120
Hi Rahim,
I don’t see you add the code
.rtl .post-meta span:not(:last-child) { margin-left: 5px; }
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 24, 2018 at 12:56 am #23128
Hi Harry,
I already added that to the style.css but made it as a comment.
now it’s active but it’s not what I am looking for.
I would like to completely hide the comment numbers in that line.
Rahim Vaziri
CEO & Founder at Look.ir -
July 24, 2018 at 3:54 pm #23145
Hi Rahim,
The code i send you add to functions.php did not hide comment number?
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 24, 2018 at 3:57 pm #23146
-
July 24, 2018 at 6:40 pm #23161
Yes, it remove number of comment on blog. You want complete remove “Comment” text?
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 24, 2018 at 6:43 pm #23163
Hi Harry,
Well the code that you gave me didn’t remove the comment section.I would like to hide it.
Thank you.
Rahim Vaziri
CEO & Founder at Look.ir -
July 24, 2018 at 6:45 pm #23164
Your question not clear. You tell me that you want hide comment number not all comment.
Please remove the code in functions.php and add more css code
.post-meta span.comment-number {display: none;}
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 24, 2018 at 7:13 pm #23169
Sorry Harry if we misunderstood each other. 🙂
You are right. the question and the subject was a little confusing.
Now it’s exactly what I meant.
I just wana know is there any chance to reorder the title of the post with the line of author’s name and category?
And do you have any solution for the search results page? I mean adding the primary sidebar in this page.
Kind regards.
Rahim Vaziri
CEO & Founder at Look.ir -
July 25, 2018 at 1:20 am #23176
Hi Rahim,
1. Please add below code to functions.php
if ( ! function_exists( 'jas_claue_post_thumbnail' ) ) { function jas_claue_post_thumbnail() { ?> <div class="post-thumbnail pr mb__25"> <?php if ( has_post_thumbnail() ) : ?> <a href="<?php esc_url( the_permalink() ); ?>" aria-hidden="true"> <?php the_post_thumbnail( 'post-thumbnail', array( 'alt' => get_the_title() ) ); ?> </a> <?php endif; ?> <div class="pa inside-thumb tc cg"> <?php jas_claue_post_title(); ?> <?php jas_claue_post_meta(); ?> <?php jas_claue_posted_on(); ?> </div> </div> <?php } }
2. For search result page, please download attach file and put in to claue-child
Best regards
Attachments:
You must be logged in to view attached files.Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 25, 2018 at 1:57 am #23185
Hi Harry,
Great.
I think the idea of the primary sidebar in the search page is not bad to be included on your next update. 🙂
Today I was taking with one my friends about you and the team.
The best support ever I have seen comes from you.
We have purchased many items online and talked with lots of authors and their team but you are the best. <3
Thank you all the time.
Rahim Vaziri
CEO & Founder at Look.ir -
July 25, 2018 at 2:09 am #23186
Harry,
The function that you gave me is working great.
But I realized that it doesn’t override the latest post in the slider of the blog page.
How can I fix that too?
And also pay attention to the Author’s name in Chrome and Firefox
Chrome :
Firefox :
Rahim Vaziri
CEO & Founder at Look.ir -
July 25, 2018 at 6:08 pm #23213
Hi Rahim,
Thank you for your kind words!
1. We included sidebar on search page for the next update.
2. For blog on slider please copy file latest.php in claue > views > post to claue-child > views > post and reorder line 33 and line 32
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 26, 2018 at 3:33 am #23236
Thank you Harry,
It’s done now.
Do you have any solution for the cutted alphabets of Author’s name in Firefox?
Best regards.
Rahim Vaziri
CEO & Founder at Look.ir -
July 26, 2018 at 12:18 pm #23251
Hi Rahim,
Please add below code
.post-meta .author a {display: inline-block;}
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 26, 2018 at 12:28 pm #23256
Thank you Harry 🙂
Fixed.
Rahim Vaziri
CEO & Founder at Look.ir
-
-
AuthorPosts
You must be logged in to reply to this topic.