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

Hur man tillåter användare att dela citat från dina WordPress Posts

De flesta tidningar och webbplatser för main stream media lägger ofta till customize block i sina artiklar. Varför är det så? Jo, för att citat förmodligen är den mest minnesvärda och delade delen av artikeln. Citat har en potential att bli virala. Nyligen visade vi dig 9 olika designexempel som du kan använda för att customize blockquote i WordPress. I den här artikeln visar vi dig hur du tillåter användare att dela citat från dina WordPress-poster till Facebook och Twitter.

Vårt mål är att markera ett citat från artikeln och add to icons för delning. Slutligt resultat:

Share a pullquote using pushquote

Det första du behöver göra är att installera och aktivera RealTidBits PushQuote plugin. När du har aktiverat pluginet går du till post editor genom att klicka på Posts ” Add New. Om du använder visual editor kommer du att se en knapp för att dra citat bland andra icons i post-redigeraren.

PullQuotes Icon WordPress Visual Editor

Välj de rader i ditt post content som du vill visa som en pullquote och tryck på pullquote-knappen i editorn. Den kommer att fråga dig om du vill justera den till vänster eller höger, och du är klar.

Alternativt om du använder textredigeraren kan du också använda shortcode runt citatinnehållet så här:

[pullquote]Text från din artikel som ska användas som pullquote går här[/pullquote].

Som standard kommer det att positionera citaten till vänster. Om du vill positionera höger, lägg sedan till koden så här: [pullquote position="right"]

RealTidBits PushQuote plugin använder tidbit.es för URL-förkortning. Vi önskar att det fanns ett alternativ för användare att ändra det. Du kan dock fortfarande ändra hur pluginet ser ut genom att editera stylesheet som finns i CSS folder. Du kan använda ett FTP-program för att redigera filen pullquote.css som ligger i /wp-content/plugins/pushquote/css/. Du kan också editera stylesheet från din adminpanel i WordPress. Gå till Tillägg ” Editor och använd rullgardinsmenyn för att välja Pushquote Plugin. On your right hand you will see a list of files, click on pullquote.css file to edit it.

Citatblock används för att fånga användarens uppmärksamhet genom att lyfta fram de mest intressanta bitarna från artikeln. Det är detta som gör dem minnesvärda och mest delbara. Vi hoppas att den här artikeln hjälpte dig att add to delningsknappar till dina citatblock i WordPress. Skulle du använda detta på din site? Låt oss veta genom att lämna en comment under.

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

14 kommentarerLämna ett svar

  1. Syed Balkhi

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

    Any new plugins that have the same function?

    • WPBeginner Support

      Should we find a new plugin we will be sure to update our article.

      Administratör

  3. Meagan

    Hi there! Any idea why this plugin might not be working with my blog? I’ve tried a couple of different themes and I’ve tried deactivating all other plugins to see if it might be fighting with another one. No luck.
    I LOVE the way this one looks so streamlined and doesn’t take away from the rest of the post. The only alternative I’ve found is text to share, and the buttons are large and obnoxious. :-( Any help would be greatly appreciated!!

  4. Day Milovich

    now you can close your eyes and do it easily with css3 and a shortcode. ups,, it’s too late for me. i read this article on january 2015.

  5. Chris Dickman

    This looks great but the plugin hasn’t been updated in over a year. I’m hesitant to use it, because of this. Do you know of another similar plugin that is current? Or could this be manually added without a plugin?

    Thanks

  6. Kay

    Hello,

    I am very new to all of this, I want to thank you for the info and also ask is there a plugin that we can use on a general collection of quotes not just pull quotes….

    Like if I have 50 love quotes what plugin do I need to allow people to share the quote/s they like and/or rate each love quote as well?

    TIA!!!!!!

  7. Michael Osborne II

    I must also agree. You’re doing a fine job with the plugin recommendations and guides. I plan to try out many of your favorites. Thanks.

  8. Fran

    This site has been a Godsend to my blog! Thank you!

  9. Jotpreet Singh

    Hey, there. I’m starting to enjoy your little plugin guides. They’re easy to follow. I hope you keep on doing this in the future

  10. Jim mcCrudden

    Wonderful idea.
    All the author has to do is resist the temptation to stick in a pullquote where she/hethinks there is particularly ”foine wroitin'” to be repeated.
    Personally, I would let a friend be the judge as to what is the pullquote. If any.
    But really, thanks. It lifts the professional look of the blog.

  11. Lam Nguyen

    Nice post, thanks.

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.