• Resolved T3Kaos

    (@t3kaos)


    Does anyone know how to remove the following from posts and the site theme.

    I don’t want the following on pages or posts;

    Author
    Posted on Date
    Post in
    Tagged

    Does anyone know how to do this on the awesome new default Twenty Eleven 1.1 Theme packaged with WordPress 3.2?

Viewing 15 replies - 1 through 15 (of 17 total)
  • Do not edit the Twenty Eleven theme. It is the default WordPress 3.2 theme and having access to an unedited version of the theme is vital when dealing with a range of site issues.

    For this reason, it is recommended that you consider creating a child theme for your customisations. Once your child theme is active, we should be able to help with the customisation.

    Thread Starter T3Kaos

    (@t3kaos)

    I have created a child theme as described. Is it correct that only a basic CSS (as described) IS THE ONLY file required for the child theme directory? Should I also do a functions.php file for it also? Or should I just include a copy of the original functions.php and index.php files in the child theme directory?

    You don’t have to have a function.php file in a child theme. It’s only added when you want your own custom functions or you need to amend the parent’s.

    Thread Starter T3Kaos

    (@t3kaos)

    Kewl thanks. So back to the original question, now that I have the child theme activated successfully.

    Does anyone know how to remove the following from posts and the site theme.

    I don’t want the following on pages or posts;

    Author
    Posted on Date
    Post in
    Tagged

    Does anyone know how to do this on the awesome new default Twenty Eleven 1.1 Theme packaged with WordPress 3.2?

    Copy content.php into your child theme and remove <?php twentyeleven_posted_on(); ?> in the copy.

    Thread Starter T3Kaos

    (@t3kaos)

    Thanks for that.

    But what about;

    Author
    Posted in (news, uncategorised etc)
    Tagged (dev, news, uncategorised etc)

    ?

    Thread Starter T3Kaos

    (@t3kaos)

    Does anyone know how to remove;

    – Author
    – Posted in (news, uncategorised etc)
    – Tagged (dev, news, uncategorised etc)

    Any ideas?

    if you are referring to single posts, edit content-single.php;
    what to remove should hopefully be self-explanatory.

    if you have problems, please post a link to your site, pointing to a post with the issue.

    for pages, edit content-page.php (although there does not seem to be any of this in a page)

    Thread Starter T3Kaos

    (@t3kaos)

    Thanks. I want to be able to remove;

    – Author
    – Posted in (news, uncategorised etc)
    – Tagged (dev, news, uncategorised etc)

    but looking at the content-single.php page I can’t see the references to these therein? You can see the first post at https://z01.co.uk

    as @esmi already suggested:

    Copy content.php into your child theme and remove <?php twentyeleven_posted_on(); ?> in the copy.

    yuor link points to the front page; therefore edit content.php in your child theme;

    find:

    <?php if ( 'post' == get_post_type() ) : ?>
    			<div class="entry-meta">
    				<?php twentyeleven_posted_on(); ?>
    			</div><!-- .entry-meta -->
    			<?php endif; ?>

    and remove it.

    the next step depends on how much you want to leave below the post;
    if you want to get rid of the ‘comments’ and ‘edit post’ as well, remove the following from content.php:
    start from (inclusive):

    <footer class="entry-meta">

    until (inclusive):
    </footer><!-- #entry-meta -->

    sidebar.php

    remove the “if statement”

    leave its preceding text

    done

    Thread Starter T3Kaos

    (@t3kaos)

    Thanks guys! You guys rock! WordPress rocks!

    Awesome tech support!

    Thread Starter T3Kaos

    (@t3kaos)

    Actually got 1 more question.

    How could I make this theme take 2 menus as opposed to the 1 default?

    Thread Starter T3Kaos

    (@t3kaos)

    Does anyone know how to completely disable comments from the site?

    how to completely disable comments from the site?

    what have you tried so far?

    there is a massive amount of answers to this question in the forum, and the general procedure should not be different for twenty eleven.

    – have you checked: ‘settings’ ‘discussion’?
    (this setting only gets applied to post/pages generated after the change)
    – have you disabled comments for each post/page individually?
    either in ‘quick-edit’ or in the ‘discussion’ area below the post/page editor?
    (you may need to activate this area under ‘screen options’ tab near the top right in the ‘edit post’ or ‘edit page’ page)

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Edit Twenty Eleven 1.1 Theme’ is closed to new replies.