• Hello,

    Here is my site and the page in question:

    http://dkmmobilestudios.com/?page_id=14

    First, I will point out that I am terrible with code, so please explain things like you are talking to a caveman.

    I want to hide the author information on all posts. I don’t care about the other meta info. I would really like to avoid creating a child theme. I don’t mind if I need to change the code again every time I download an update. Can someone provide me with the correct code and where to place it?

Viewing 8 replies - 1 through 8 (of 8 total)
  • See this Snippet

    This will still leave the word ‘by’. You’ll either need a Child Theme or a Search & Replace plugin to remove that too.

    Thread Starter sadosubliminal

    (@sadosubliminal)

    I will try those, thanks!

    Thread Starter sadosubliminal

    (@sadosubliminal)

    1st solution worked great, thanks so much!

    @rdellconsulting

    I have a child theme, and I want to change the entry-meta to read:

    “Article posted in [category] on [date]”

    Could you direct me to or walk me through how to do this?

    @ssslilla you may need to start a new thread..

    @ssslilla:
    1)Create a folder named parts in your child theme.
    2)Create a file named class-content-post_metas.php and copy the whole code from parent theme’s file class-content-post_metas.php(parts/class-content-post_metas.php).
    3)go to lines 76-82 where it says

    if ( $tag_list ) {
                    $utility_text   = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.' , 'customizr' );
                    } elseif ( $categories_list ) {
                    $utility_text   = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.' , 'customizr' );
                    } else {
                    $utility_text   = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.' , 'customizr' );
                }

    change it to

    if ( $tag_list ) {
                    $utility_text   = __( 'Article posted in %1$s  on %3$s ' , 'customizr' );
                    } elseif ( $categories_list ) {
                    $utility_text   = __( 'Article posted in %1$s on %3$s ' , 'customizr' );
                    } else {
                    $utility_text   = __( 'Article posted on %3$s ' , 'customizr' );
                }

    @bravokeyl

    AHA! I knew I was missing something! I copied that file into my functions.php and made the suggested changes, but I didn’t see any change on the page.

    Now I understand. For any permanent changes like these, I will need to replicate customizr’s file structure in my child theme; so now when it loads the functions, it will read the /parts directory in my child theme first. Brilliant.

    I’m sorry I didn’t start an individual post, but I will next time. Thanks so much for your help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Removing author information in posts’ is closed to new replies.