Forums

twenty eleven page title questions (4 posts)

  1. brianmaguire
    Member
    Posted 4 months ago #

    I have 2 questions about the page titles in the Twenty Eleven theme.

    1. I created a child theme from Twenty Eleven and an edit button is appearing next to every page title, allowing the user to edit the title. How do I remove that?

    2. Is it possible to remove the title from just one page? My welcome page currently has the title "Welcome" and I would prefer that it not have one at all.

    I am using WordPress 3.3.1 and if looking at the site itself would help, right now it is at http://www.mooningthewerewolf.com/wordpress.

    Thanks for any help.
    Brian

  2. alchymyth
    The Sweeper
    Posted 4 months ago #

    1.

    this button is only showing if the user is logged in with the neccesssary capabilities to edit things;
    remove it from content.php, content-single.php, content-page.php, etc:

    <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>

    (or similar)

    2.

    you can use css and the page-id-234 body_class output (234 is the page id):

    example:

    .page-id-234 .entry-title { display: none; }

  3. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

    allowing the user to edit the title

    No. That edit link is only displayed to logged-in users with the appropriate editing privileges.

    Is it possible to remove the title from just one page?

    Yes. See custom page templates

  4. brianmaguire
    Member
    Posted 4 months ago #

    Thanks Alcymyth and esmi! You solved both issues.
    Brian

Reply

You must log in to post.

About this Topic