WordPress.org

Ready to get started?Download WordPress

Forums

Remove posted by admin line on page content column (14 posts)

  1. webmarshall
    Member
    Posted 2 years ago #

    This is making me crazy(er)....

    I cannot get rid of this line:

    Posted by admin on August 1st, 2011 Edit this entry.

    It is located on my content column. I can't stand the comments area so that has been removed but the posted by admin line is still there.

    I'm using the Elbee Elgee Theme. Please help!

  2. vtxyzzy
    Member
    Posted 2 years ago #

    Edit the file 'includes/functions/hooks.php' under the theme folder. Edit line 118:

    <span class="postmeta">Posted by <?php the_author(); ?> on <a href="<?php the_permalink(); ?>"><?php the_time('F jS, Y'); ?></a> <?php if (!is_single() && !is_page() ){ ?>| <span class="commentlink"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span><?php } edit_post_link(' Edit this entry.', '', ''); ?></span>

    Take out the parts that you do not want.

  3. rcknapp
    Member
    Posted 2 years ago #

    Where can I find the theme folder so I can edit it. Sorry, I am SUCH a novice...

  4. vtxyzzy
    Member
    Posted 2 years ago #

    You will probably need to use FTP or a 'file manager' from your hosting service to find and edit the file.

    If that sounds like a foreign language, you probably should hire someone to help you. You can post an ad at jobs.wordpress.net.

  5. rcknapp
    Member
    Posted 2 years ago #

    Thanks! I found the file via the 'file manager' of Fatcow. But the folder is empty (as are many others under 'themes' there in the wp subfolder). Any idea where the contents of 'functions' might have gone?

  6. rcknapp
    Member
    Posted 2 years ago #

    Here is the code. What should I change? I tried deleting what seemed to be relevant, but then the page wouldn't load--an error message about a code error.
    }

    function lblg_post_info(){
    ?>
    <div class="postinfo">
    <span class="postmeta">Posted by <?php the_author(); ?> on "><?php the_time('F jS, Y'); ?> <?php if (!is_single() && !is_page() ){ ?>| <span class="commentlink"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span><?php } edit_post_link(' Edit this entry.', '', ''); ?></span>
    <?php if( !is_page() ) { ?>
    <span class="postcats">Posted in <?php the_category(', '); ?></span>
    <?php } ?>
    <?php if( is_single() ){?>
    <span class="posttags"><?php the_tags('Tagged as: ',','); ?></span>
    <?php }?>
    </div>
    <?php
    }

  7. rcknapp
    Member
    Posted 2 years ago #

    When I deleted from } to } I get the error Warning: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, 'lblg_post_info' was given in /hermes/web01/b2338/moo.rcknapp/appfiles/InvisibleRomans/wp-includes/plugin.php on line 395

  8. webmarshall
    Member
    Posted 2 years ago #

    Thank you all for posting a response!

    I removed the entire function from the theme folder (see vtxyzzy first post). I wanted to remove the ability to comment in the page content area as well. It worked perfectly. Thank you!

    Here is what I removed under'includes/functions/hooks.php':

    function lblg_post_info(){
    ?>
    <div class="postinfo">
    <span class="postmeta">Posted by <?php the_author(); ?> on "><?php the_time('F jS, Y'); ?> <?php if (!is_single() && !is_page() ){ ?>| <span class="commentlink"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span><?php } edit_post_link(' Edit this entry.', '', ''); ?></span>
    <?php if( !is_page() ) { ?>
    <span class="postcats">Posted in <?php the_category(', '); ?></span>
    <?php } ?>
    <?php if( is_single() ){?>
    <span class="posttags"><?php the_tags('Tagged as: ',','); ?></span>
    <?php }?>
    </div>
    <?php
    }

    The blog for this site is under another wordpress name. We redirected it so my blog was not harmed.

  9. rcknapp
    Member
    Posted 2 years ago #

    Webmarshall, could you tell me where you found 'includes/functions/hooks.php', that is, what was the rest of the address? I can't seem to find it (although I found it once before) on my server. Thanks.

  10. rcknapp
    Member
    Posted 2 years ago #

    I am using Elbee Elgee theme. Although bolding holds, the italics does not--I go to edit, highlight text, click 'I' and the icon is shaded, as though it heard me. :0 But then after update and publish, there are no italics. Anyone offer advice on this one? Thanks.

  11. vtxyzzy
    Member
    Posted 2 years ago #

    @rcknapp, that sounds like an unrelated problem. You might get more help if you start a new thread with a different title describing that problem.

  12. webmarshall
    Member
    Posted 2 years ago #

    hi rcknapp, two answers: 'inlcudes/functions/hooks.php' - I downloaded a copy of elbee elgee and saved it to my computer. Then, I went to each of those folders: inlcudes - then functions - then hooks.php. I deleted what I wanted to get rid of on a free editor and overwrote the old version of the file (via FTP).

    The "italic" issues sounds like a bad update or upload. Try removing the theme and reinstalling it. (Of course, you'll want to save a copy of what you have now...just in case). Good luck!

  13. rcknapp
    Member
    Posted 2 years ago #

    webmarshall, thanks very much. I finally resolved my issues by using a different theme. there just seemed to be (for me, at least) too many issues with Elbee Elgee. I do appreciate your efforts, and those of vbxyzzy.

  14. Doug
    Member
    Posted 2 years ago #

    rcknapp:
    I'm sorry, it's been so long since anyone posted in the forums for my theme here on the .Org that I just plum missed your question.

    The good news is that if you, or anyone else wants to accomplish what you're looking for, I've got the answer right in my FAQ:

    Q: “How can I remove the ‘Posted by admin on (date) edit this entry’ ? I don’t want that to show on my page.”

    A:

    Make sure you're using a child theme (see above).
    Edit your child theme's functions.php
    Add this to the bottom of functions.php:

    remove_action( 'lblg_after_itemtext', 'lblg_post_info' );

    Hope that helps!

Topic Closed

This topic has been closed to new replies.

About this Topic