dhyanakendra
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [GeneratePress] Customization of Rank Math SEO BreadcrumbsHi Tom
I was provided with the CSS for customization by Rank Math Seo support:
/* Rank Math SEO customization */
.rank-math-breadcrumb a {
font-size: 16px;
color: #6b6b6b;
}Now the issues I am facing are:
1. Font size changes for part of the breadcrumbs ( 2 font sizes are displayed -: 16px ( which I want and 21px which is the font size of the post content)
2. There is a gap between the breadcrumbs and the title of the postThanks
BMForum: Themes and Templates
In reply to: [GeneratePress] Customization of Rank Math SEO BreadcrumbsForum: Themes and Templates
In reply to: [GeneratePress] Customization of Rank Math SEO BreadcrumbsForum: Themes and Templates
In reply to: [GeneratePress] Estimated Reading TimeHi Tom
I am marking this as resolved since the issue is not that important. Thanks again for your expert advice and support, as alwaysForum: Themes and Templates
In reply to: [GeneratePress] Estimated Reading TimeHi Tom
Absolutely Yes. I want the estimated reading time to show only the value for English language and not for others.
Forum: Themes and Templates
In reply to: [GeneratePress] Custom links in the navigation bar not displayedHi Tom
Resolved the issue by implementing a snippet to support font awesome 5 ( which was already discussed sometime back in this forum)
Thanks anyways,
Forum: Themes and Templates
In reply to: [GeneratePress] Estimated Read TimeHi Tom,
My bad! I just forgot to include the filter as advised. Now everything seems Ok!
Thanks a lot!Wishing you a very Happy New Year 2019! [ in advance ?? ]
Forum: Themes and Templates
In reply to: [GeneratePress] Estimated Read TimeHi Tom
There is no output displayed after updating the code. Could you pls. check if I am missing out something?
https://i.postimg.cc/6qMghyMH/scrnsht.jpg
function tu_estimated_reading_time() { $post = get_post(); $content = $post->post_content; $wpm = 300; // How many words per minute. $clean_content = strip_shortcodes( $content ); $clean_content = strip_tags( $clean_content ); $word_count = str_word_count( $clean_content ); $time = ceil( $word_count / $wpm ); $text = ' minutes'; if ( 1 == $time ) { $text = ' minute'; } return $time . $text; }
- This reply was modified 6 years, 2 months ago by dhyanakendra.
Forum: Themes and Templates
In reply to: [GeneratePress] Estimated Read TimeHi Tom
This is the code:
function tu_estimated_reading_time() { $post = get_post(); $content = $post->post_content; $wpm = 300; // How many words per minute. $clean_content = strip_shortcodes( $content ); $clean_content = strip_tags( $clean_content ); $word_count = str_word_count( $clean_content ); $time = ceil( $word_count / $wpm ); return $time . ' minutes'; } add_filter( 'generate_post_date_output', function( $output ) { $output .= '<div class="read-time">Reading time: ' . tu_estimated_reading_time() . '</div>'; return $output; } );
Forum: Themes and Templates
In reply to: [GeneratePress] Estimated Read TimeHi Tom
The issue seems to have been resolved. However, there is a minor issue with the output. For 1 minute of reading time, it displays 1 minutes instead of 1 minute. Could you please suggest changes in the code?
Thank You again!
Wishing A Very Happy Christmas to you, your family and the entire GP Team!
Forum: Themes and Templates
In reply to: [GeneratePress] Estimated Read TimeForum: Themes and Templates
In reply to: [GeneratePress] Estimated Read TimeForum: Themes and Templates
In reply to: [GeneratePress] Estimated Read TimeForum: Themes and Templates
In reply to: [GeneratePress] css entry-titleHi
Sorry to have posted here. please ignore. Shall create a new topicRegards
Forum: Themes and Templates
In reply to: [GeneratePress] css entry-titleHi
I referred to a previous post on this topic and entered the code as provided, however, the estimated reading time is not displayed in the single post. I would like to get it displayed under the author name /last updated date. I can’t link you up to the site as it is being developed locally. Would appreciate your expert advice and solution as always!
function tu_estimated_reading_time() {
$post = get_post();
$content = $post->post_content;
$wpm = 300; // How many words per minute.$clean_content = strip_shortcodes( $content );
$clean_content = strip_tags( $clean_content );
$word_count = str_word_count( $clean_content );
$time = ceil( $word_count / $wpm );return $time . ‘ minutes’;
}add_filter( ‘generate_post_date_output’, function( $output ) {
$output .= ‘<div class=”read-time”>Reading time: ‘ . tu_estimated_reading_time() . ‘</div>’;return $output;
} );