【サイト制作】SNSプラグインを埋め込む方法

プログラミング

シュテル(@sterchannel2020)です!

WebサイトにはSNSのタイムラインが埋め込んであったりするけどどうやるんだろう?

今やSNSの運用はマストですからね。埋め込み方を覚えていきましょう👍

SNSプラグインを埋め込む流れ

レイアウト組みさえできれば意外と簡単です。

「Facebook プラグイン生成」と検索すればすぐページが見つかります。

そこでサイズなどを指定してコードを生成すればよいのですが、IFrameコードの場合はデバイス画面幅に合わせて伸縮はしてくれないので注意です。

TwitterとYouTubeもそれぞれのプラグイン生成ページに行ってコードを作り、HTMLファイルに貼り付けるだけです。

SNSプラグインのレスポンシブ対応

CSSのメディアクエリー

@media (max-width:600px){ }

の中に書き込んで、縦並びになるようにしておきます。

flex-directionをcolumnにして、各要素の幅を100%にしておけばOKです。

SNSプラグイン埋め込み完成!

PC表示だときれいに横並びになってます
画面幅を狭めるとFacebookはIFrameコードなので伸縮せず
TwitterとYoutubeはきれいに伸縮してくれてます

コメント

  1. EvaleenelOi より:

    best dissertation
    [url=”https://dissertations-writing.org”]phd dissertation writing help[/url]
    writing a science dissertation

  2. MaggeeelOi より:

    how long does a dissertation have to be
    [url=”https://dissertationwriting-service.com”]help i can’t write my dissertation[/url]
    average dissertation length

  3. diu07i より:

    https://cialiswen.com/ cialis order

  4. RegineelOi より:

    dissertation help student room
    [url=”https://helpon-doctoral-dissertations.net”]help writting ed.d dissertation[/url]
    dissertation hypothesis help

  5. amia38 より:

    how much is propecia https://himshairloss.com/

  6. KirstielOi より:

    dissertation proposal writing
    [url=”https://help-with-dissertations.com”]phd dissertation help editing[/url]
    get help with dissertation

  7. tinyurl.com より:

    I used to be suggested this blog by my cousin. I am not sure whether this submit
    is written via him as nobody else realize such particular about my difficulty.
    You’re wonderful! Thank you!

  8. moxy63 より:

    https://cialiswen.com/ buy cialis for daily use online

  9. KirstielOi より:

    dissertation help service villeurbanne
    [url=”https://help-with-dissertations.com”]whats a dissertation[/url]
    writing the doctoral dissertation

  10. CharlaelOi より:

    dissertation editor cost
    [url=”https://mydissertationwritinghelp.com”]dissertation writing services review[/url]
    ucf thesis and dissertation

  11. maiodi より:

    what is stromectol used to treat https://stromectolo.com/

  12. owwd74 より:

    https://postmailmed.com/ best online international pharmacies

  13. syqxaf より:

    side effects of hydroxychloroquine hcq side effects hydroxychloroquine for sale over the counter

  14. lhhz17 より:

    https://postmailmed.com/ prescription drugs online buy

  15. aek29a より:

    where can i get hydroxychloroquine online hydroxychloroquine uses hydroxychloroquine otc name

  16. mqk62i より:

    plaquenil generic what is hydroxychloroquine hcq medication

  17. My brother recommended I would possibly like this web site.
    He was entirely right. This submit truly made my day. You can not imagine simply how so
    much time I had spent for this info! Thanks!

  18. bit.ly より:

    I’d like to find out more? I’d love to find out some additional information.

  19. tinyurl.com より:

    I needed to thank you for this excellent read!!
    I definitely enjoyed every little bit of it. I’ve got you bookmarked to check out new
    stuff you post…

  20. tinyurl.com より:

    Hmm it seems like your blog ate my first comment (it was super long) so I guess I’ll just sum it up what I
    submitted and say, I’m thoroughly enjoying your blog. I as well am an aspiring blog blogger but I’m still new to the
    whole thing. Do you have any suggestions for first-time blog writers?
    I’d certainly appreciate it.

  21. tinyurl.com より:

    You’re so awesome! I do not believe I have read a single thing like that before.
    So good to discover another person with genuine thoughts on this subject.

    Seriously.. thanks for starting this up. This web site is one thing that’s needed on the internet, someone with a bit
    of originality!

  22. Wow, that’s what I was seeking for, what a stuff! present here at this website, thanks admin of this web page.

  23. tinyurl.com より:

    This is the right site for anybody who would like to understand this topic.
    You understand so much its almost hard to argue with you (not that I personally would want to…HaHa).

    You certainly put a brand new spin on a subject which has been discussed for decades.
    Great stuff, just wonderful!

  24. tinyurl.com より:

    Its like you read my mind! You appear to know a
    lot about this, like you wrote the book in it or something.

    I think that you can do with a few pics to drive the message home
    a bit, but other than that, this is fantastic blog.
    An excellent read. I will definitely be back.

  25. KatineelOi より:

    slots capital
    [url=”https://2-free-slots.com”]scatter slots girls[/url]
    infer tonoslots

  26. tinyurl.com より:

    We’re a group of volunteers and starting a new scheme in our community.

    Your website provided us with valuable info to work on. You have
    done an impressive job and our whole community will be
    thankful to you.

  27. AurlieelOi より:

    vegasslotsonline/free
    [url=”https://411slotmachine.com”]play slots free wolf moon[/url]
    online slots that pay real money

  28. AddieelOi より:

    slim slots free
    [url=”https://beat-slot-machines.com”]slots 300[/url]
    play caesars online slots for fun

  29. PerrineelOi より:

    myvegas slots free chips
    [url=”https://candylandslotmachine.com”]free slots win real money[/url]
    aol slots lounge games free

  30. CyndiaelOi より:

    fun party casino
    [url=”https://download-slot-machines.com”]play kon ami slots free[/url]
    play free casino slots

  31. PaolinaelOi より:

    jackpotjoy slots free games
    [url=”https://freeonlneslotmachine.com”]slots of vegas[/url]
    free penny slots online

  32. TwylaelOi より:

    slots free
    [url=”https://giocoslotmachinegratis.com”]free slots 777 no download[/url]
    7 lucky bonus

  33. 2suzerainty より:

    1mention

  34. ShalnaelOi より:

    online slots
    [url=”https://pennyslotmachines.org”]vegas world[/url]
    operation slots

  35. can you buy viagra in thailand https://sildenafilwtf.com

  36. AdrianaelOi より:

    pogo free slots
    [url=”https://slotmachinegambler.com”]gsn casino[/url]
    slots online real money

  37. NeddaelOi より:

    spooky slots
    [url=”https://slotmachinegameinfo.com”]quick hits free slots[/url]
    poker slots free

  38. IngunnaelOi より:

    free video slots 888
    [url=”https://slotmachineonlinegratis.org”]casino world free slots[/url]
    free slots video poker

  39. JannelleelOi より:

    quick hit slots facebook
    [url=”https://slotmachinescafe.com”]free slots 12×12[/url]
    online real money slots

  40. EadieelOi より:

    free slots for fun
    [url=”https://slotmachinescasinos.com”]quick hit slots[/url]
    free video slots 888

  41. RaneeelOi より:

    free on line slots
    [url=”https://slotmachinesforum.net”]classic slots free[/url]
    free quick hit slots

  42. DennaelOi より:

    quick hit slots free
    [url=”https://slotmachinesworld.com”]casino slots games online[/url]
    sims play online

  43. KareeelOi より:

    free kronos slots for fun
    [url=”https://www-slotmachines.com”]paymygame[/url]
    gsn casino

  44. bluethshop.com より:

    https://bluethshop.com how old do you have to be to buy viagra

  45. Chesterron より:

    штабелеры с электроподъемом
    [url=https://elektroshtabeler-kupit.ru]https://elektroshtabeler-kupit.ru[/url]

  46. medsmir.com より:

    list of over the counter med https://medsmir.com

  47. Robinanoft より:

    самоходные штабелеры
    [url=https://shtabeler-elektricheskiy-samokhodnyy.ru]http://www.shtabeler-elektricheskiy-samokhodnyy.ru/[/url]

  48. Robinanoft より:

    самоходный штабелер
    [url=https://shtabeler-elektricheskiy-samokhodnyy.ru]https://www.shtabeler-elektricheskiy-samokhodnyy.ru[/url]

  49. Robinanoft より:

    штабелер электрический самоходный
    [url=https://shtabeler-elektricheskiy-samokhodnyy.ru]http://www.shtabeler-elektricheskiy-samokhodnyy.ru/[/url]

  50. Robinanoft より:

    самоходный штабелер
    [url=https://shtabeler-elektricheskiy-samokhodnyy.ru]https://shtabeler-elektricheskiy-samokhodnyy.ru[/url]

  51. Robinanoft より:

    самоходный штабелер
    [url=https://shtabeler-elektricheskiy-samokhodnyy.ru]https://shtabeler-elektricheskiy-samokhodnyy.ru[/url]

  52. Robinanoft より:

    штабелер электрический самоходный
    [url=https://shtabeler-elektricheskiy-samokhodnyy.ru]https://shtabeler-elektricheskiy-samokhodnyy.ru[/url]

  53. Robinanoft より:

    самоходные штабелеры
    [url=https://shtabeler-elektricheskiy-samokhodnyy.ru]https://shtabeler-elektricheskiy-samokhodnyy.ru[/url]

  54. Robinanoft より:

    штабелер электрический самоходный
    [url=https://shtabeler-elektricheskiy-samokhodnyy.ru]https://shtabeler-elektricheskiy-samokhodnyy.ru/[/url]

  55. sildenafil citrate 20 mg https://sildenafiluis.com

  56. https://dostromectolit.com/ ivermectin for humans

  57. 2purchasing より:

    3innovations

  58. books and dissertation about mafa people https://professionaldissertationwriting.org/

  59. dissertation help online free https://professionaldissertationwriting.com/

  60. statistics help for dissertation https://dissertationwritingcenter.com/

  61. proposal and dissertation help 2000 words https://examplesofdissertation.com/

  62. dissertation writing memes https://writing-a-dissertation.net/

タイトルとURLをコピーしました