The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] [closed] [Theme: Twenty Twelve] How does featured post work? (8 posts)

  1. jf80
    Posted 3 years ago #

    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.


  2. Michael
    Forum Moderator
    Posted 3 years ago #

    each 'sticky' post should be shown under a 'featured post' heading;


    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

  3. jf80
    Posted 3 years ago #

    Sorry, just seen this reply!

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


  4. Nadir
    Posted 3 years ago #

    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.

  5. jf80
    Posted 3 years ago #

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

  6. Nadir
    Posted 3 years ago #

    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.

    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.

    .featured-post { display: none; }

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

  7. talla
    Posted 3 years ago #

    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).

  8. WPyogi
    Forum Moderator
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic