remove .post-meta, .post-info

Community Forums Forums General Discussion remove .post-meta, .post-info

This topic is: resolved

This topic contains 6 replies, has 3 voices, and was last updated by  benjeeno 2 years, 8 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #32081


    I am wanting to remove .post-meta and .post-info, just the text, not the border-top or margin or padding.

    I zeroed out the font-size for both and that removed them, but is there a better way?

    Using ‘display:none;’ for each isn’t what I want, I want just the text to be removed for each.



    Try one of these code snippets:

    Susan @ One Happy Studio I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts



    Thanks Susan, but I don’t see how I can do what I really want to do. I see there is CSS in the code snippets page you shared. I was able to get the effect of removing the post-meta and post-info by taking the font-size in CSS down to ‘0px’, but is there a better way at removing these like with short codeā€¦ and keeping the margins and padding, and border styling? I want to remove the text without using CSS.

    By using the remove action on .post-meta it removed all of the CSS declarations. The only declaration I want to be affected is the font-size; I want the text removed, and want to know if there is a way to remove it with short code or remove action, WITHOUT removing all the other CSS declaration stylings.



    Of these two snippets from the functions.php file, what and how would I change them to remove the .post-meta & .post-info text, and would this also remove the padding and margins, and borders declarations in CSS for each?

    /** Customize the post info function */
    add_filter( ‘genesis_post_info’, ‘post_info_filter’ );
    function post_info_filter($post_info) {
    if (!is_page()) {
    $post_info = ‘[post_date] by [post_author_posts_link] · [post_comments] [post_edit]‘;
    return $post_info;

    /** Customize the post meta function */
    add_filter( ‘genesis_post_meta’, ‘post_meta_filter’ );
    function post_meta_filter($post_meta) {
    if (!is_page()) {
    $post_meta = ‘[post_categories before="Filed Under: "] · [post_tags before="Tagged: "]‘;
    return $post_meta;



    Install the Genesis Simple Edits plugin and remove the shortcode’s.



    Thanks, that works.



    I found that adding these to your functions.php file also work but then you have to add in CSS margin, padding, border styling to bring back those settings. See code below for this method. Removing the shortcodes from Genesis Simple Edits plugin is much cleaner and quicker, it removes only what I wanted removed.


    // Remove post meta
    remove_action(‘genesis_after_post_content’, ‘genesis_post_meta’);

    // Remove the post info function
    remove_action(‘genesis_before_post_content’, ‘genesis_post_info’);

    .post {



    border:0px solid #000000;


Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘remove .post-meta, .post-info’ is closed to new replies.