Support » Fixing WordPress » Removing/Hiding 'About the Author' from a page

  • I want to remove ‘About the Author’ area from ‘About me’ page..Obiviousely,b/c i have already written about myself in ‘About me’ (http://mywebsite.com/?page_id=2),so this section does not look neccessarily.. ..i am trying to do something like if page id is 2 then don’t show ‘about the author’..PLEASE PLEASE HELP.

    ‘i am using Arras theme 1.4.3..i am not well conversant with php but i do think i need to change page.php where it says .

    <?php if ( arras_get_option(‘display_author’) ) : ?>
    <div class=”about-author clearfix”>
    <h4><?php _e(‘About the Author’, ‘arras’) ?></h4>
    <?php echo get_avatar(get_the_author_meta(‘ID’), 48); ?>
    <?php the_author_meta(‘description’); ?>
    </div>
    <?php endif; ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • I can’t be sure, but I think this is what you want. Change this:

    <?php if ( arras_get_option('display_author') ) : ?>

    to this:

    <?php if ( $post->ID != 2 && arras_get_option('display_author') ) : ?>

    Thread Starter nb123

    (@nb123)

    Thank you thank you…it worked !

    Glad it worked! Now, please use the dropdown on the right to mark this topic ‘Resolved’.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing/Hiding 'About the Author' from a page’ is closed to new replies.