Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Så här utväljer du en page i WordPress

Har you sett populära websites som utvald specifika pages i sina sidebars? Dessa statiska sidor används för att displayed information gillar en about page, getting started page new readers, an archives page etc. Nyligen frågade en av våra användare oss om det fanns ett sätt att utvalda pages i WordPress. I den här artikeln visar vi dig hur du utvald en page i WordPress.

Featuring a page in WordPress sidebar

Det första du behöver göra är att installera och aktivera pluginet Feature A Page Widget. Efter aktivering går du helt enkelt till Appearance ” Widgets där du kommer att notera en new widget som heter ’Feature a Page Widget’. Därefter drar och släpper du widgeten till en sidebar.

Feature a page in WordPress widget settings

Det första alternativet i widgetens Settings är att välja en widgettitel. Du kan lämna den tom om du vill. För det andra måste du välja en page som du vill utvald från rullgardinsmenyn.

Så snart du väljer en page kommer widgeten att visa dig sidans status. Den kommer att kontrollera om det finns en thumbnail (featured image) och ett excerpt.

Om din page ej har dem kommer widgeten att markera dem med röd färg. You can click on the pencil icon which will open the page in the post editor where you can set a thumbnail and excerpt.

Om du inte ser metarutan Excerpt när du redigerar sidan måste du aktivera den. Click on the Screen Options button on the top right corner of the screen. En rullgardinsmeny visas och du måste helt enkelt kontrollera boxen bredvid Excerpt.

Show excerpt and featured image boxes for pages on post editor screen in WordPress

Rulla nu ner till metarutan för excerpt som finns under post editor.

När din page har både excerpt och thumbnail kan du välja en layout för ditt widget. För närvarande erbjuder den tre val av layout. Wrapped image layout kommer att visa din sida thumbnail omsluten med excerpt. Alternativet banner image layout kommer att visa din thumbnail image högst upp på excerptet. Slutligen kommer alternativet för layout för stor bild att visa en större version av imagen högst upp på excerptet av din page.

När du har valt ett alternativ för layouten kan du clicka på knappen Save för att store dina inställningar för widgetar.

Det var all, du kan nu previewa din website för att se din utvalda page i WordPress. Kom ihåg att du kan add to flera widgetar för utvalda sidor i dina sidebars. Du kan också visa eller dölja widgetar på specifika pages i WordPress.

Vi hoppas att den här artikeln hjälpte dig att utvalda pages i WordPress.

Om du gillade den här artikeln, vänligen prenumerera på vår YouTube-kanal för WordPress video tutorials. Du kan också hitta oss på Twitter och Google+.

Avslöjande: Vårt innehåll stöds av våra läsare. Det innebär att om du klickar på några av våra länkar, kan vi tjäna en provision. Se hur WPBeginner finansieras, varför det är viktigt, och hur du kan stödja oss. Här är vår editoriala process.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Den ultimata WordPress-verktygslådan

Få GRATIS tillgång till vår verktygslåda - en samling WordPress-relaterade produkter och resurser som varje professionell användare bör ha!

Reader Interactions

12 kommentarerLämna ett svar

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Sarah says

    Nice plugin,

    One thought as an idea..

    Allow admin to set posts/pages a ’Featured Post Of The Day’ as a popup where they can select at time intervals, Day, Month, Banner, Except, Link URL.

    We don’t use sidebar widgets that much so having an ability to allow this as a popup on target pages would be a bonus!

    Nice plugin :-)

    • Mark Root-Wiley says

      Hi Sarah,

      I’m glad to hear you like the plugin! (It’s always appreciated if you can leave a review saying as much!)

      Since the plugin’s focus is on *Pages*, date-driven features are low on the priority list. The most likely would be a ”Most Recent Post” option if anything.

      As for using the widget as a popup, I’d encourage you to explore plugins that allow for Widgets in pages or give you a widget shortcode. That’s always my recommendation for getting Feature a Page Widget into non-sidebar locations.

  3. Mark Root-Wiley says

    Hi Everyone,

    Mark the plugin’s developer here again. I’m happy to belatedly announce that 2.0.0 is now officially available in the plugin repository!

    The new version includes a ton of great new features:

    – Allows you to feature posts of any post type. Pages and Posts are enabled by default.
    – New advanced options allow you to hide the Page Title, Feature Image, and Excerpt or add a ”Read More” link.
    – Improved interface makes more sense and better matches the current admin styles.
    – New templating system uses separate files for each layout and is much easier to modify.
    – New filters allow for more control over the widget output.

    Full documentation of the new version is available on my website.

    Thank to everyone who’s ever tried the plugin. I hope this new version makes the plugin even more powerful and easy to use.

  4. Claire says

    Hi Mark – if you’re there..?
    I installed the plugin and set up the widget, but my excerpt is transposed, displaying vertically down the page. Can you help me fix it?
    Thanks everso
    Claire

  5. mrwweb says

    Hi Everyone,

    I’m Mark, the developer of the Feature a Page Widget. I’m glad you’ve found it worth reviewing and using!

    Today I released the 2.0.0-beta version that has lots of new goodies. It needs a bit more testing, so if you’re interested in the new features, please try it out and let me know what you think of it.

    You can find the details about the new version and information for trying it out at http://wordpress.org/support/topic/feature-a-page-widget-200-beta-available-for-testing?replies=1#post-6013471.

    I look forward to hearing your feedback!

    -Mark

  6. Paul Ames says

    nicely done, used this in my site, how can you disable sharing buttons within the featured box, without disabling them on each page, which are showing up, using shareaholic? Have you heard of this one?

Lämna ett svar

Tack för att du väljer att lämna en kommentar. Tänk på att alla kommentarer modereras enligt våra policy för kommentarer, och din e-postadress kommer INTE att publiceras. Vänligen använd INTE nyckelord i namnfältet. Låt oss ha en personlig och meningsfull konversation.