Meta data

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #15324
    Zdenka
    Member

    Is it possible to

    1) only hide the meta data under the header, but display those at the bottom?
    2) remove the author line (unnecessary when there is only one author)
    3) add “Last modifed” line?

    #20196
    Sushil Adhikari
    Moderator

    You can hide the meta data by doing some custom CSS to hide the div container that info content shows up in as:

    .entry-meta {display: none;}

    Everything else is going to be the same. You can look at the html source code of your page to see where and what you want to hide, but basically this is where a person needs to now do as mentioned above by seeing the container that something is in, look at the ID or class of it, and use that to display:none; in a custom CSS stylesheet.

    #20204
    Zdenka
    Member

    Oh, yes, I understand that. I might have not written it clearly. When

    .entry-meta {display: none;}

    is added to CSS stylesheet, it affects both the “top” and the footer.entry-meta. I just can’t figure out how to maintain the one called “footer” and remove only the “top”. The basic setting in the customizer offers only to hide the footer.
    BTW it seems like the footer.entry-meta includes the bottom “edit” link. So when the code above is applied, the edit link in individual posts disappears as well.

    Ok.

    .meta-author {display: none}

    But how to remove the gap that appears there, the


    tag?

    As for “Last modified” I guess it can’t be done in a simple CSS…
    I’m just staring at that part:

    <?php edit_post_link( __( 'Edit This Post', 'preferential' ), '' ); ?> <?php the_tags(__('Tagged with:
    '); ?> <?php printf(__('Posted in:
    <?php printf( __( 'Articles by: %s', 'preferential' ), '' ); ?>

    …having no idea where to apply there something from here: http://codex.wordpress.org/Function_Reference/the_modified_date without destroing the structure.

    How about adding Last modified (option?) to the theme in an update? Just a suggestion.

    #20207
    Sushil Adhikari
    Moderator

    Unfortunately as the code is, your display none will affect it all, but it’s possible to do some creative CSS to target only the page that exists on. To be honest, this is where you need to have some CSS experience. It’s a bit difficult to really do a tutorial here if you are not familiar with this. As for the modified date, yes, you have to dig into the php code as well if you want that in there….something I am guessing you won’t want to do.

    #20220
    Zdenka
    Member

    Thanks. You understand very well.

    Why does “The basic setting” in the customizer includes the option to hide the footer post info but not the option to hide the top post info?

    It seems like the footer.entry-meta includes the bottom “edit” link. So when the the option to hide footer post info is chosen, the edit the post link disappears also. Is that intended?

    How about adding Last modified (option?) to the theme in an update? Just a suggestion.

    #15325
    Sushil Adhikari
    Moderator

    I will definitely give that some thought on the next update…more likely I will.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.