WordPress.org

Forums

Masonry Widget
[resolved] Remove Author post date from Masonry plugin (18 posts)

  1. Tammy.m
    Member
    Posted 1 year ago #

    I am using the Masonry plugin on my front page for a site that I am building. (curbappeal.tips)
    I would like to remove the author and post information and just keep the title.
    My plan is to use the plugin in place of a menu on the front page.
    How can i remove the "posted on <date> by <author>" when hovering on the image?

    https://wordpress.org/plugins/so-masonry/

  2. Tammy.m
    Member
    Posted 1 year ago #

    I created the front page from pages and not posts.

  3. Tammy.m
    Member
    Posted 1 year ago #

    Hello? Is there any help for this? Does anyone have another plugin suggestion that is a mason like plugin? Something that works well?

  4. Katharine
    Member
    Posted 1 year ago #

    I too am wondering how to do this. I'm using it for my portfolio, and don't want the dates to show.

    http://www.visualizesocial.ca/portfolio

  5. sftranna
    Member
    Posted 1 year ago #

    Hello @Katharine and @Tammy.m,
    Simplest, Although never advised, way to get/update your required feature is edit this file /public_html/wp-content/plugins/so-masonry/tpl/masonry.php and comment out as in

    <!--<div class="entry-meta">
    					<?php
    					printf( __( 'Posted on <a href="%1$s" title="%2$s" rel="bookmark"  target="_blank"><time class="entry-date" datetime="%3$s">%4$s</time></a><span class="byline"> by <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'so-masonry' ),
    						esc_url( get_post_meta( get_the_ID(), 'website_url', true ) ),
    						esc_attr( get_the_time() ),
    						esc_attr( get_the_date( 'c' ) ),
    						esc_html( get_the_date() ),
    						esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    						esc_attr( sprintf( __( 'View all posts by %s', 'so-masonry' ), get_the_author() ) ),
    						get_the_author()
    					);
    					?>
    				</div><!-- .entry-meta -->
  6. Katharine
    Member
    Posted 1 year ago #

    Thanks so much! It's perfect.

    :)

  7. Tammy.m
    Member
    Posted 1 year ago #

    Woo Hoo. It took a bit but finally an answer.
    I'll try it out. Thank you.

  8. Tammy.m
    Member
    Posted 1 year ago #

    Yeah! It worked.
    Again,
    Thank you.
    Tammy.m

  9. Tammy.m
    Member
    Posted 1 year ago #

    Resolved

  10. sftranna
    Member
    Posted 1 year ago #

    @Tammy.m and @Katharine

    You are always welcome

  11. hayleyd87
    Member
    Posted 1 year ago #

    Where do you edit that file ?????

  12. sftranna
    Member
    Posted 1 year ago #

    File is /public_html/wp-content/plugins/so-masonry/tpl/masonry.php. You can use your favourite editor to edit it after downloading :)

  13. r0bm1lls
    Member
    Posted 1 year ago #

    This is helpful although messy because it is at risk of being wiped out when updates happen. However... there seems to be no other way right now. Does anyone have any suggestions as to how to modify that code block so the post excerpt shows instead of the author and post date?

  14. sftranna
    Member
    Posted 1 year ago #

    @r0bm1lls if you need to get this plugin customized please send me an email. But keep an eye on your budget too

  15. ghulamali2612
    Member
    Posted 1 year ago #

    simple solution add this css into your stylesheet
    .entry-meta{
    display: none;
    }

  16. eeidem
    Member
    Posted 10 months ago #

    I did this on my homepage. I just set the text-size: 0px; in the .css file. This way you can always go back and change the pixels so that you can see the author and date.

    example:
    .so-masonry-container .masonry-brick .post-information .entry-meta {
    color: #ffffff;
    font-size: 0px;
    font-style: italic;
    }

  17. laurabrivadera
    Member
    Posted 7 months ago #

    Hi, shoud I have to copy the sentence as it was posted by sftranna to get out post data from the image? thanks
    Someone know how to use this layout with pages instead of posts?

  18. sftranna
    Member
    Posted 7 months ago #

    @laurabrivadera yes you can use this code.
    I didn't come across any problem while using this code.

    Best,

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Masonry Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic