WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to use post formats in Twentyeleven (10 posts)

  1. Bodhipaksa
    Member
    Posted 2 years ago #

    I'm using Twentyeleven straight from the box on a new site, which discusses quotes. So I was excited to see that there were now post formats, including a "quote" format. Great! Now I can display a post containing a quote, specially formatted!

    Except that selecting "quote" as the post format seems to do nothing. The stylesheet says that a block quote should look like this:

    .format-quote blockquote {
    	color: #555;
    	font-size: 17px;
    	margin: 0;
    }

    But it looks like any other block quote. Here's an example:
    http://www.fakebuddhaquotes.com/drop-by-drop/

    And although in the Twentyeleven theme I've added

    .format-quote .post-title {display:none;}

    the post title still stubbornly shows up. Presumably I'm missing something. Anyone care to point out what that might be?

  2. Krishna
    Volunteer Moderator
    Posted 2 years ago #

    Are editing/customizing Twenty Eleven theme, or have you created its child theme?

  3. Bodhipaksa
    Member
    Posted 2 years ago #

    I'm just editing the "out of the box" Twentyeleven theme. Is that a problem?

  4. Krishna
    Volunteer Moderator
    Posted 2 years ago #

    Yes. Read the following.
    http://codex.wordpress.org/Child_Themes

  5. Bodhipaksa
    Member
    Posted 2 years ago #

    Thanks. I was actually just reading that and creating a child theme (or at least copying the stylesheet from twenty eleven to a new directory.

    But ... why does the style declaration for .format-quote blockquote that's in twenty eleven not work?

  6. Krishna
    Volunteer Moderator
    Posted 2 years ago #

    It works, try again. When learning new things, you may not get things working for the first time, every time.

  7. Bodhipaksa
    Member
    Posted 2 years ago #

    What does "try again" mean? The rule's there in the stylesheet, and it's not being applied.

    What might I be missing?

  8. Bodhipaksa
    Member
    Posted 2 years ago #

    Working on the child theme...

  9. Bodhipaksa
    Member
    Posted 2 years ago #

    Well, this is where I say "duh" and realize that I should have paid more attention to what was going on in the stylesheet. It was just a silly mistake on my part and it's now sorted.

    Thanks for encouraging perseverance!

  10. Krishna
    Volunteer Moderator
    Posted 2 years ago #

    Glad to note that you could solve the problem.

Topic Closed

This topic has been closed to new replies.

About this Topic