• ola.
    I’m using a child theme based on Twenty Eleven.
    I’d like to remove the categories information shown in post footer.
    I’d like to remove it from all post formats.

    I spent a few hours looking for a tip in wp forum but did not find a working solution.
    Hope that some of you can help me.

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter popsitivity

    (@popsitivity)


    it works only on some posts..
    not all of them.

    Hi popsitivity,

    I’m sorry that’s not working for you. Are you using special templates for some of your posts? Have you tried taking a look at the posts with the Firebug extension in Firefox or Chrome? I’m sorry, but without a link to see what you’re seeing, it’s hard to pinpoint what the issue might be. Could you take a screen shot of where this isn’t working?

    Thanks!

    Thanks ChristiNi.

    It worked great for me!

    Glad to hear that pactrop, thanks for the feedback!

    ChristiNi – thank you. I have been trying to change this today with little success. Luckily I searched for help again and found this posting. I already had a child theme with my own css file so your solution was super simple and effective. Plus easy to show others! Thanks again!

    Another solution is to copy content.php from twenty eleven to your child theme and add a line to clear the variable that holds the categories, css or code both work.

    With the code you could have categories on the categories or archive pages, by saving content.php as content-archive.php and/or content-categories.php

    Find:

    <?php
    	/* translators: used between list items, there is a space after the comma */
    	$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
    	if ( $categories_list ):
    ?>

    Then add a line to empty the $categories_list

    <?php
    	/* translators: used between list items, there is a space after the comma */
    	$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
    	$categories_list = ''; /* Empty the Variable */
    	if ( $categories_list ):
    ?>

    HTH

    David

    Thank you so much, ChristiNi – I have been looking for days, and your solution is simple and perfect. Thank you!

    Hi! I just remove the “posted on” in theme twenty eleven but I want to set up the date post format (color, font-family, etc). I have been trying to add this lines formats in emtry-meta (CSS style) but didn’t work. Could anyone help me?

    Thank you!

    This are the lines which Itried to modify:
    }
    .entry-meta .sep {display:none;}
    color: #666;
    clear: both;
    font-size: 24px;
    line-height: 18px;
    }

    .entry-meta a {
    font-weight: bold;
    }
    .single-author .entry-meta .by-author

    }
    .entry-content,
    .entry-summary {
    padding: 1.625em 0 0;

    Do not edit the Twenty Eleven theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. First create a child theme for your changes.

    above what esmi recommended, your css in the posted section is violating basic syntax rules (for instance by the way the brackets { and } are used) – check https://www.w3schools.com/css/

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Remove posted in 'category' from twenty eleven theme’ is closed to new replies.