WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jf80
    Member
    Posted 1 year 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.

    Thanks!

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    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

  3. jf80
    Member
    Posted 1 year ago #

    Sorry, just seen this reply!

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

    Thanks.

  4. Nadir
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

  6. Nadir
    Member
    Posted 1 year 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.
    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.

  7. talla
    Member
    Posted 9 months 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
    Volunteer Moderator
    Posted 9 months 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