Support » Plugin: Custom Related Posts » How to display posts aligned ?

  • Resolved bazar92


    Hi ,

    I want to display my posts aligned, instead of each one on top of each other
    I took a look at the output.php and I couldnt find on which lines I can add flexboxes
    Does anyone have solutions ?


Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Brecht


    Hi there,

    Could you give me a link to a page where you’re using the plugin so I can take a look?

    Thread Starter bazar92


    My page isn’t online yet, but I can give you some sample of my code :

    <?php if (in_category('meme')) : ?>
        <h2 style="text-align:center;"> Appartient à l'Egregor :</h2>
        <div class="flex-container">
            <div style="">
                <?php echo do_shortcode('[custom-related-posts]'); ?>
    <?php endif; ?>

    And here is what It displays :

    Plugin Author Brecht


    You should be able to target the “crp-list-item” CSS class.

    Thread Starter bazar92


    Thanks for your reply, i’m now able too modify the CSS of each post, but do you know which class I should use to align them ?

    EDIT : just found

    .crp-list-item {
    background-color: white;
    border: 1px solid grey;
    width: auto;
    max-width: 160px;
    min-width: 160px;
    border-radius: 10px;
    padding: 8px;
    display: inline-block !important;
    margin-left: 16px !important;

    • This reply was modified 2 years, 4 months ago by bazar92.

    Thanks you… bazar92

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to display posts aligned ?’ is closed to new replies.