This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Columns, video & shortcodes — add oembed to Builder content

  • Creator
    Topic
  • #3488
    giuliogrillo
    Member

    Hi Jason,
    i wonder if in the future the theme will include any solution to insert more contents using the shortcode Button.

    I want to write a post and, maybe at the beginning, i want to add 2 youtube videos on the same row, subdivided in 2 columns.
    i know i can insert simply many youtube links and WP does the magic (but they are displayed sequentially), i know your theme is developed to insert post grid, post list, it can manage images and galleries just synchronizing with native media manager and there are other solution to link videos to featured images.

    At the end, this is what i was able to do:
    http://www.nograndinavi.it/wordpress/harboring-tourism-a-symposium-on-cruise-ships-in-historic-port-communities/

    as your tutorials clearly describe, it needs to write some code.
    I can imagine how this could slow the editing when less experienced will add some fancy content.

    Surely the most immediate method could seem using TB shortcode button but it does’t work:

    [raw]
    [one_half] http://www.youtube.com/watch?v=r6jobnaPn1c [/one_half]
    [one_half last] youtube link n.2 [/one_half]
    [clear]
    [/raw]

    It print only the text.

    Any suggestion?
    Thanks in advance
    G

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #3497
    giuliogrillo
    Member

    Of course it works also this following code (youtube code). Maybe there is a simple way to make videos responsive

    [raw]
    [one_half]…object width=”300″ height=”169″> [/one_half]
    [one_half last] …object width=”300″ height=”169″> [/one_half]
    [clear]
    [/raw]

    Anyway it would be great if in the future TB shortcode could give more opportunities to add things: “post-video-grid” as in this case, or other kind as “post-specific-list” when it need to add only selected posts instead of categories. (it could have sense for all of those who doesn’t really care to automatize featured posts and want to select them when needed)

    Again, all the best
    Giulio

    • This reply was modified 7 years, 7 months ago by giuliogrillo.
    • This reply was modified 7 years, 7 months ago by giuliogrillo.
    • This reply was modified 7 years, 7 months ago by giuliogrillo.
    • This reply was modified 7 years, 7 months ago by Jason Bobich.
    #3517
    Jason Bobich
    Keymaster

    WordPress has an embed shortcode you can use like this:

    [embed]http://www.youtube.com/watch?v=r6jobnaPn1c[/embed]

    http://codex.wordpress.org/Embeds

    When you do this, it’s the same as if you put the URL on it’s own line, and so the theme has a chance to apply it’s responsive HTML markup filters around it.

    • This reply was modified 7 years, 7 months ago by Jason Bobich.
    • This reply was modified 7 years, 7 months ago by Jason Bobich.
    #3562
    giuliogrillo
    Member

    Elementary my dear Watson. thanks for the tip!

    #19096
    jasontpt
    Participant

    Hi Jason,

    I’m trying to insert video into a 3 column area, but when using the layout builder this doesn’t seem possible. It’s doable if you select “content from current page” and have the 3 column shortcode entered there, but not if you enter the shortcode into the builder itself. I even tried creating a new page just for the 3 column’s itself, and chose “content from external page” but that doesn’t seem to work either. Any workaround?

    #19100
    Jason Bobich
    Keymaster

    What you can do is filter the oembed to “themeblvd_the_content” — This is our filter that is placed around text from the Builder whenever you check the “Apply automatic WordPress formatting” box. It’s how we apply wpautop, do_shortcode, etc, to this content, so it displays similarly to that of a standard post or page.

    So, from your child theme’s functions.php, you can try something like this:

    add_filter( 'themeblvd_the_content', array( $wp_embed, 'run_shortcode' ), 8 );
    add_filter( 'themeblvd_the_content', array( $wp_embed, 'autoembed'), 8 );

    Reference: http://www.wpbeginner.com/wp-tutorials/how-to-enable-oembed-in-wordpress-text-widgets/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.