• Resolved wpger

    (@fogruen)


    I’d love to use this great plugin but unfortunately I’ve got some articles using the Page-Link tag <!–nextpage–> on my site. At the moment the related posts appear ABOVE the Page Links what might somehow be irritating to the reader. Is there an easy way to get them down BELOW the post-related navigation elements?

    https://ww.wp.xz.cn/plugins/contextual-related-posts/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Ajay

    (@ajay)

    Hi,

    The way the next page link works is outside the_content while the related posts tap into the_content.

    There are two options that I can think of.
    1. Use the manual method as given in the FAQ by editing the theme files
    2. Use a plugin that allows you to display the more text / pages better. I personally use https://ww.wp.xz.cn/plugins/custom-pagination/
    it hasn’t been updated in a while but works so far.

    Thread Starter wpger

    (@fogruen)

    Hi Ajay,

    unfortunately I’m quite unfamiliar with the use of css/php and using an outdated plug-in is not an option vor me because it might be broken with every new update. Would it be cheeky to ask for an hint for newbies like me? Where to put additinonal code in the style.css or other files. I’m using WP 4.0 with a child theme of the standard theme Twenty Fourteen.

    Kind Regards

    Thread Starter wpger

    (@fogruen)

    ok, i managed to show related posts in my theme by adding
    <?php if(function_exists(‘echo_ald_crp’)) echo_ald_crp(); ?>
    to the content.php

    They are showing up as intended (i.e. http://www.digitalzimmer.de/artikel/news/was-macht-den-netflix-faktor-aus/) but the text is not in line with the rest of the page. What do i have to add to the styles.css of my child theme?

    Thread Starter wpger

    (@fogruen)

    With a little help from google I figured out that I’m able to change the output from the plugins admin-page (Custom CSS) via

    #crp_related {
    xxxx
    }

    But I have no clue which parameters to set (magin, padding, etc.) As Twenty Fourteen is responsive the position has to be variable depending on the screen width.

    Plugin Author Ajay

    (@ajay)

    You can add whatever CSS code you need directly in the Custom Styles section under the Settings page.

    Have you tried using the Default Styles that I have included with the plugin? It makes things look a lot better.

    Thread Starter wpger

    (@fogruen)

    Thank very much you for your suggestion but the default style is a bit heavy for my site, I’d rather have plain textlinks. And using the defaults wouldn’t solve my problem as they are displaced in the same way as the textlinks are.

    My knowledge of CSS ist very little. So I would very much appeciate any help in writing the code. I just want to put the related links (left-aligned) below the body text – in the responsive manner of the theme (Twenty Fourteen).

    Plugin Author Ajay

    (@ajay)

    Can you post the code that you’re using currently for displaying the CSS? I noticed that the content is floated left which is one issue.

    You might want to move the PHP code with the echo function before the closing div of the post entry:

    </div>
    <!-- .entry-content -->
    Thread Starter wpger

    (@fogruen)

    Thank you a lot Ajay, you made my day!
    Moving
    <!– .entry-content –>
    below the line <?php if(function_exists(‘echo_ald_crp’)) echo_ald_crp(); ?> in the content.php of my child theme solved the issue.

    At the moment there is no need for further css-adjustments. I like the output of my theme. Thank you once again, now CRP is exactly what I was looking for – you’re getting a full 5-star-rating πŸ˜‰

    Plugin Author Ajay

    (@ajay)

    You’re welcome. Am glad to know we got this resolved.

    And, thank you for the 5-star rating!

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

The topic ‘Contextual Related Posts on Multi-Page-Posts’ is closed to new replies.