Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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 9 years, 6 months ago by avastava.
    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?

    Plugin Author avastava

    (@avastava)

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

Viewing 3 replies - 1 through 3 (of 3 total)