WordPress.org

Support

Support » Themes and Templates » [Resolved] [Theme: Twenty Twelve] How does featured post work?

[Resolved] [Theme: Twenty Twelve] How does featured post work?

  • How do I set a post to be featured at the top of 2012?

    How do I turn the featured bit off so that none is displayed?

    At the moment I just have the words ‘Featured post’ under the menu.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Michael

    @alchymyth

    Forum Moderator

    each ‘sticky’ post should be shown under a ‘featured post’ heading;

    http://codex.wordpress.org/Sticky_Posts

    because ‘about this blog’ is a ‘sticky’ post, the headline ‘featured post’ is hown above it.

    for the code, see content.php of Twenty Twelve

    Sorry, just seen this reply!

    I’ve edited content.php and removed the featured post div.

    Thanks.

    Bad idea to edit content.php. It will be overwritten if the theme gets an update. As alcymyth mentioned, you should set the post as “sticky”. However, note that adding sticky to more than one post will bring the seemingly “incomplete” Featured Post heading back and will be repeated multiple times as you scroll down through the page. So just set one post as ‘sticky’

    If you have to edit the theme, consider creating child theme.

    I’ve only got one post marked as a sticky. It still displayed the featured post bit.

    You need to set a “featured image” in the post that you are setting as sticky. You can set the featured image by going to the post > Edit and then scrolling all the way down until you see “Featured Image” on the right. If you don’t see it, go to “Screen Options” tab on top of the same screen next to “Help” and check on the required box. The featured image will replace the “Featured Post” area.

    If you don’t want to set a featured image for the sticky post, you should try to create a twenty twelve child theme. The following link would get you started.
    http://codex.wordpress.org/Child_Themes

    If not then I will give you a trick for it, which is not the best way to do it but it might just serve your purpose for that particular post.

    when you are on the edit post page, go to the “text” tab of your visual editor and paste the following code at the end of the post.

    <style>
    .featured-post { display: none; }
    </style>

    The above CSS will hide the div you don’t want. But you have to do this in every post you set as sticky.

    Putting the code in the post via the Text Editor didn’t work for me, However, putting it into the CSS (Custom Designs) does the trick (in WordPress.com, Custom Designs will cost you $30 a year for the privilege).

    WPyogi

    @wpyogi

    Forum Moderator

    @talla – these forums are only for self-hosted WordPress.ORG sites, so WordPress.COM info is irrelevant. This thread is also way outdated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] [Theme: Twenty Twelve] How does featured post work?’ is closed to new replies.