Better format for recent posts widget, remove date & author

This topic has 2 replies, 2 voices, and was last updated 8 years, 5 months ago ago by Jack Richardson

  • Avatar: ArthurAnn
    ArthurAnn
    Participant
    November 15, 2015 at 19:38

    Hello,

    In my footer, and right panel like the demo, I have the 8theme recent blog posts widget with thumbnails.

    On both, the author and date is not formatted correctly, and goes to the left wrapping under the post thumbnail, just looks bad.

    Can you please tell me how to a) remove the “by” author and date (display:none), so it is just the blog post title, maintaining a tight little space right there… and also b) how to make that text, link, author and date, just left-aligned going straight down to the right of the thumbnail, if I choose to keep the meta info there?

    Also how do I decrease the line-height for that text area?

    Thanks. Just want to prevent the text from wrapping under image and looking bad.

    WP admin and FTP in previous ticket Private box but I don’t think you need it. Thanks for all your help.

    Scott

    1 Answer
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 16, 2015 at 12:51

    Hello,

    a) Unfortunately property “display: none” can’t be used for the “by” author and date. This section can be removed only by editing the file wp-content/themes/legenda/framework/widgets.php. Comment or delete the code in lines 368 and 369:
    <?php _e('by', ETHEME_DOMAIN) ?> <strong><?php the_author(); ?></strong><br>
    <?php the_time(get_option('date_format')); ?>

    b) Try to use the following css code:

    .recent-post-mini .postimg {
    margin-bottom: 40px;
    }

    Use this css code to change line-height:

    .footer .recent-post-mini {
        line-height: 150%;
    }

    Set the value to your needs.

    Best regards,
    Jack Richardson.

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.