• Resolved poelzi

    (@poelzi)


    Thank you for the cool plugin!

    The read time is working correct in the title of a post. Anyway I have an issue with the “previous/next post” section. The page looks like this:

    PREVIOUS POST
    MY BLOG POST NAME<span
    class=calc_read_time_shower_title_span”>
    4 min
    read</span>

    The bold text should not occur. Any suggestion what’s going wrong?

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author avastava

    (@avastava)

    Dear @poelzi thank you for your input. Please provide your WordPress version number.

    Thread Starter poelzi

    (@poelzi)

    My WordPress version is 4.7 (it is also located in the “topic info”).

    Plugin Author avastava

    (@avastava)

    It works fine in 4.7 with the twenty seventeen theme
    Showing read time in twenty seventeen theme
    May I know which theme you tested it on?

    Thread Starter poelzi

    (@poelzi)

    I am working with the theme “Chosen“.

    I will also check the twenty seventeen theme later…

    Plugin Author avastava

    (@avastava)

    The problem is that the theme template escapes HTML in the previous/next titles.

    For this plugin to work with this theme you should edit the theme code.

    The file to edit is ./wp-content/themes/chosen/content/post-nav.php

    You can also edit the post-nav.php page from the theme editor.

    In the bottom of the page change this code

    <nav class="further-reading">
    	<div class="previous">
    		<span><?php echo esc_html( $previous_text ); ?></span>
    		<a href="<?php echo esc_url( $previous_link ); ?>"><?php echo esc_html( $previous_title ); ?></a>
    	</div>
    	<div class="next">
    		<span><?php echo esc_html( $next_text ); ?></span>
    		<a href="<?php echo esc_url( $next_link ); ?>"><?php echo esc_html( $next_title ); ?></a>
    	</div>
    </nav>
    

    to

    <nav class="further-reading">
    	<div class="previous">
    		<span><?php echo esc_html( $previous_text ); ?></span>
    		<a href="<?php echo esc_url( $previous_link ); ?>"><?php echo  $previous_title ; ?></a>
    	</div>
    	<div class="next">
    		<span><?php echo esc_html( $next_text ); ?></span>
    		<a href="<?php echo esc_url( $next_link ); ?>"><?php echo  $next_title ; ?></a>
    	</div>
    </nav>
    
    • This reply was modified 7 years, 11 months ago by avastava.
    Thread Starter poelzi

    (@poelzi)

    @avastava it works. Thank you for your fast help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Issue with “previous/next post” section’ is closed to new replies.