Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1256267
    ArtOfSpring
    Participant

    Hi there,

    I followed the instructions of that thread to achieve a shortcode that displays all posts of the same cetagory:
    https://community.theme.co/forums/topic/display-all-posts-and-portfolio-items-shortcode/page/2/

    Somehow it affected the layout of the posts. Maybe the given CSS changes are outdated?
    http://stage.mybetterlife.de/beziehung/

    Thank you

    #1256389
    Paul R
    Moderator

    Hi,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1256548
    ArtOfSpring
    Participant
    This reply has been marked as private.
    #1257494
    Paul R
    Moderator

    Hi,

    Thank you for provising your logins.

    I added this in your custom > css to fix the layout.

    
    .all_posts .x-recent-post-1 {
           width: 22%;
    }
    
    .all_posts .x-recent-post-1:nth-child(4n+4)  {
          margin-right:0;
    }
    

    Please check on your end.

    http://stage.mybetterlife.de/beziehung/

    Thanks

    #1257983
    ArtOfSpring
    Participant

    Hi Paul,

    thanks for that!
    I added “padding-bottom:20px;” but it only effects the 3 first columns not the fourth column.
    Also count=”4″ in the shortcode of recent posts should set the number of the columns.
    That’s not working anymore.

    #1258197
    Nabeel A
    Moderator

    Hi again,

    Please replace your code with this one:

    a.x-recent-post-1.with-image {
        margin-bottom: 20px !important;
    }
    .all_posts .x-recent-post-1:nth-child(4n+4) {
        padding-bottom: 0 !important;
    }

    Let us know how this goes!

    #1268252
    ArtOfSpring
    Participant

    Thank you 🙂

    #1268400
    Jade
    Moderator

    You’re most welcome.

  • <script> jQuery(function($){ $("#no-reply-1256267 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>