Forums

Help with Code :-) (9 posts)

  1. johnrbarringer
    Member
    Posted 2 years ago #

    I'm an idiot...could someone tell me how to delete the code on my site for the two links " Uncategorized No comment"

    I've tried a ton of stuff and it's kicking my butt. I'm not the best at code yet and I've stripped everything I need to expect those two pesky links at the bottom.

    Any help would be much appreciated.

  2. wetwetwafu
    Member
    Posted 2 years ago #

    open your wordpress directory,

    go to wp-admin folder,

    then open admin-header.php.

    on line 104, locate this
    <img id="header-logo" src="../wp-includes/images/blank.gif" alt="" width="32" height="32" /> <h1 id="site-heading" <?php echo $title_class ?>><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="<?php _e('Visit Site') ?>"><span id="site-title"><?php echo $blog_name ?></span> <em id="site-visit-button"><?php _e('Visit Site') ?></em></a></h1>

    replace it with
    <img id="header-logo" src="../wp-includes/images/blank.gif" alt="" width="32" height="32" /> <h1 id="site-heading" <?php echo $title_class ?>><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" target="_blank" title="<?php _e('Visit Site') ?>"><span id="site-title"><?php echo $blog_name ?></span> <em id="site-visit-button"><?php _e('Visit Site') ?></em></a></h1>

    i just added this target="_blank" to open your blog in a new window.

    i hope this wont destroy your blog.. well, just make a copy of your untouch admin-header.php for a backup.

  3. wetwetwafu
    Member
    Posted 2 years ago #

    im sorry about this one, i just got an google crash then when i restart google chrome, my reply was accidentally posted here.. my bad.

    the problem for this was here.

    sorry again, my bad.

  4. wetwetwafu
    Member
    Posted 2 years ago #

    ok since im here, can you please put a link to your site, or maybe the theme that youre using?

  5. wetwetwafu
    Member
    Posted 2 years ago #

    remove this code to remove the "Uncategorized" or category name:

    <?php the_category(', ') ?>

    remove this code to remove the number of comments display:

    <?php comments_popup_link('No Comments »'); ?>

    it may looks different in other template but no matter what, remove "the_category" and "comments_popup_link" are your keyword.

    i hope this one helps.. but before trying this, make a copy of your index.php for a backup.

  6. johnrbarringer
    Member
    Posted 2 years ago #

    My bad...the site is here...

    http://www.calvaryorlando.org/exodus/

  7. johnrbarringer
    Member
    Posted 2 years ago #

    And is there a way I can delete those links from the theme I'm using rather than mess with the WordPress files?

    THANKS!

  8. wetwetwafu
    Member
    Posted 2 years ago #

    use display:non on the css if you dont feel like deleting codes.

    im not sure if you can hide them in the admin panel with a simple click.

  9. wetwetwafu
    Member
    Posted 2 years ago #

    sorry for typo error, it's display:none;

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags