• I’ve looked everywhere and I can’t find the ‘<?php the_category(‘, ‘) ?>’ in the Hybrid theme.

    I’d like to remove the “posted in uncategorized” from all the posts. The main page and individual.

    Any help / guidance would be much appreciated.

Viewing 13 replies - 1 through 13 (of 13 total)
  • it will be similar to this in the home.php file
    remove this line–

    <span class=”cat-links”><?php printf( __( ‘Posted in %s’, ‘hybrid’ ), get_the_category_list(‘, ‘) ) ?></span>

    it should apply similar to the other pages you want to remove it from
    always make a back-up of the file before editing

    yeah I looked at those template files, odd. but you havve a template just for meta in there “loop-meta.php”
    find it and you can adjust this stuff:

    <div class="loop-meta">
    			<h1 class="loop-title"><?php echo get_post_field( 'post_title', $wp_query->get_queried_object_id() ); ?></h1></div><!-- .loop-meta --><?php elseif ( is_category() ) : ?>
    <div class="loop-meta archive-info category-info">
    <h1 class="loop-title archive-title category-title"><?php single_cat_title(); ?></h1><div class="loop-description archive-description category-description"><?php echo category_description(); ?></div><!-- .loop-description -->
    
    		</div><!-- .loop-meta -->

    yeah I looked at those template files, odd. but you havve a template just for meta in there “loop-meta.php”
    find it and you can adjust this stuff:

    <div class="loop-meta">
    			<h1 class="loop-title"><?php echo get_post_field( 'post_title', $wp_query->get_queried_object_id() ); ?></h1></div><!-- .loop-meta --><?php elseif ( is_category() ) : ?>
    <div class="loop-meta archive-info category-info">
    <h1 class="loop-title archive-title category-title"><?php single_cat_title(); ?></h1><div class="loop-description archive-description category-description"><?php echo category_description(); ?></div><!-- .loop-description -->
    
    		</div><!-- .loop-meta -->

    Thread Starter ousmanemariko

    (@ousmanemariko)

    Should I delete those lines?

    not sure, this is kind of odd looking to me, weird theme. But this appears to be what you’re looking for. I’d be careful. back up!

    Thread Starter ousmanemariko

    (@ousmanemariko)

    Removing it doesn’t work.

    lets try this another way, post a link to the site and I’ll see if I can get the css.

    Thread Starter ousmanemariko

    (@ousmanemariko)

    crude, but the best I could do:

    .entry-meta {
       display:none;
    }

    It also removes the comment link. But comments are expanded in single post view as ussual, so maybe it can work for you anyway.
    At least untill you can find where it is in your template. I just don’t know what’s going on in that code, doesn’t have a lot of the ussual stuff I see. I’m afraid to mess with it.

    Thread Starter ousmanemariko

    (@ousmanemariko)

    Thanks for trying!

    Yea, it even I thought it looked odd, even to me. So in which file should I put this code in? Style.css?

    yep, good luck:)

    and by the way, that meta template is for search results only. I have no idea where that link is.

    Thread Starter ousmanemariko

    (@ousmanemariko)

    That worked! Thanks!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Remove "posted in uncategorized"’ is closed to new replies.