Category: Wordpress

  • Facebook Embedded Video test

    Facebook Embedded Video test

    Facebook like to provide <iframe></iframe> embed links for videos which is a little annoying, but we can get rid of the need for a custom html block by using the default Facebook Embed URL composer block.

    Anyway, I have found some videos of the awesome Joelle on Facebook and I am embedding them into this post using the Facebook Embed Block.

    Boom, four videos using the new block. It seems to work a treat until Meta “mess” something else up again.

    However, for some reason, embedding using the WordPress Facebook Block does not, as you can see above, display the title and or other periphery information that is with the video post. When you click embed on Facebook there is the option to include full post, the embed block doesn’t cater to that.

    If that stuff is valuable to you, then you have no choice but to use Custom HTML blocks and use the embed code that as the source for that block. Here are the three videos above linked as Custom HTML blocks.

    I create a simple custom html block wrapper here and include all of the above videos within it, might as well let the browser do most of the work for us, no point in reinventing the wheel so to speak.

    HTML
    <div style="width: 100%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap">
    
    <iframe 
      src="https://www.facebook.com/plugins/video.php?height=476&href=https%3A%2F%2Fwww.facebook.com%2FOfficialJoelle%2Fvideos%2F1680104278697923%2F&show_text=true&width=267&t=0" 
      width="267"
      height="591"
      style="border:none;overflow:hidden"
      scrolling="no" frameborder="0" allowfullscreen="true" 
      allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share" 
      allowFullScreen="true">
    </iframe>
    
    ...
    
    </div>

    Enjoy your embedding #peaceout

  • Testing .. 1 . 2 .. erm .. 3 .. Gutenberg Blocks

    Testing .. 1 . 2 .. erm .. 3 .. Gutenberg Blocks

    To Gutenberg blocks and beyond! Well, that was an interesting 48 hours! I was sitting here writing something for someone else (words, lots and lots of words) and while I was looking at it, I thought it would be nice to have more than one column of text to read, like a newspaper or magazine; flowing columns. Of course, a simple enough ask if you’re creating your own HTML/CSS, the ‘column-count’ and ‘column-gap’ styling options work a treat. However, when you’re writing in WordPress paragraphs, there are no such thing.

    It seems since the update to 6.3 and the update to the 2023 theme, this is now broken. Please be aware of that, I haven’t had a chance to look at why. If you wanted to have a look and let me know that would save me the effort! Thanks.

    Dave
    (more…)