• Hi!

    I am trying to remove the author metadata on each post. I (kind of) know what code from the single-post.php that I need to remove – but I do not want to remove a character too much and get a php error.

    I do not have access to the FTP information for this site so I’ve got one shot to eliminate it. Can someone please show me exactly which text to delete?

    Here it is:

    <div class="post-title">
                <?php if ( is_front_page() ): ?>
                    <h1 class="front-page"><?php the_title() ?></h1>
                <?php else: ?>
                    <h1 class="inner-page"><?php the_title() ?></h1>
                <?php endif ?>
    
                <?php if(!actuate_get_option('disable_post_meta')): ?>
                <div class="post-meta">
                    <?php
                        echo '<span class="entry-date">' . get_the_date() . '</span>';
                        <strong>echo '<span class="meta-author-url">, By <span class="author vcard">';
                        the_author_posts_link();</strong>
                        echo '</span> </span>';
                        if(!comments_open()) { // Comments not open
                            if(get_comments_number()){ // Comments are more than zero
                                echo ' | <span class="post-meta-comments">'.get_comments_number(). ' '. __('Comments (Closed)', 'actuate').'</span>';
                            } else { // Comments are zero
                                echo ' | ' . __('Comments (Closed)', 'actuate');
                            }
                        } else { // Comments are open
                            echo ' | <span class="post-meta-comments">';
                            comments_number( '<a href='.get_comments_link().'>'.__('Leave a reply', 'actuate').'</a>', __('1 Comment', 'actuate'), '% '.__('Comments', 'actuate') );
                            echo '</span>';
                        } ?>
                </div>
            <?php endif ?>
            </div>

    Thank you so much!

Viewing 1 replies (of 1 total)
  • Thread Starter sponauglebl

    (@sponauglebl)

    I was trying to bold the text I believe I need to remove but the formatting didn’t respond within the backticks – hence why it says .

Viewing 1 replies (of 1 total)
  • The topic ‘Remove Author metadata from posts’ is closed to new replies.