• mayurjango

    (@mayurjango)


    Hi,

    I’ve disabled the related posts option in Hueman and have alternatively added Yet Another Related Posts Plugin (YARPP).

    I’ve selected a custom PHP file from YARPP templates. The problem is that related posts are neither appearing as numbers list when using <ol></ol> tag nor in bulleted list form when using <ul></ul>.

    I want to show the Related posts in Bullet list form. Plz help!

    Live site example page: https://webtrickz.com/how-to-view-history-of-your-google-voice-searches/

    This is the PHP code from yarpp-template-example.php. (Even after changing
    <ol> to <ul>, source code still shows <ol> tag and I cleared cache too.

    <h3>Related Posts</h3>
    <?php if (have_posts()):?>
    <ul>
    	<?php while (have_posts()) : the_post(); ?>
    	<li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a><!-- (<?php the_score(); ?>)--></li>
    	<?php endwhile; ?>
    </ul>
    <?php else: ?>
    <p>No related posts.</p>
    <?php endif; ?>

    Thanks in advance.

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

    (@bdbrown)

    Hi mayurjango. This isn’t really a theme problem but it’s a fairly easy fix. The problem is that the default theme css resets the ol list-type to none, and the YARPP plugin doesn’t provide an override. Try this in your child theme css:

    .yarpp-related ol {
      list-style: decimal;
    }
    Thread Starter mayurjango

    (@mayurjango)

    Hi bdbrown,

    That worked and I applied some custom css to fit as per my needs.

    Now, I just want to replace “Related Posts” text with “YOU MAY ALSO LIKE…” text (along with hand icon) as shown in Hueman.

    How to do that?

    Thanks

    bdbrown

    (@bdbrown)

    That’s really a different question so please enter a new topic. If the current issue has been fixed please mark this topic as resolved. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘YARPP not showing Related Posts in Bulleted/ Unordered List’ is closed to new replies.