Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1008812
    kevin_hermann
    Participant

    Hello, i just have a homepage where i use Advanced Responsive Video Embedder

    I changed the Template to X Theme, the Plugin with the VideoShortcodes works quiet fine inside a post, but not as i want in the post preview:
    for example [vevo id=”QMTND1100196″] or [youtube id=”vClpJwFS9G4″]

    It is important for me to have Videos in the blog layout displayed.

    In the next project, i want to change another homepage, there are about 700 posts with those video shortcodes inside. It would be important, that those can be easy displayed in the blog listing.

    Please change the code inside wordpress, sothat easily it works with that.
    If you have no idea how to fix it, i could give you the raw code of another theme to implement the lines, sothat those videos can be understood by wordpress. In another template, there it is displayed very well, every video that is supported by wordpress and also shortcodes by plugins.

    in “blog video.jpg” there is an example of the code inside”
    in “single.php” from line 100-155, there it is implemented.
    Do you need more code to see and to implement it?

    This code improvisation would bring very new features to X Theme.

    Best wishes,
    Hermann from Germany

    #1008818
    kevin_hermann
    Participant
    #1008919
    Lely
    Moderator

    Hello Hermann,

    Thanks for posting in. By default this is not a featured offered by X. It is possible via customization which is outside the scope of our support. Although, I can point you to the template file that you can edit to implement this: \wp-content\themes\x\framework\views\integrity\content.php. Thank you for understanding.

    #1009866
    kevin_hermann
    Participant

    Hello,
    i am just one line before a solution, so that video shortcodes can work with the x theme, this could be helpful for others to!

    In /wp-content/themes/x/framework/functions/global/featured.php
    Line 155:

    ——————————–
    Update, with this improvisation, it works with embedded iframe codes & shortcodes like []

    echo do_shortcode( '[x_video_embed type="' . $aspect_ratio . '" no_container="true" class="mvn"]' . do_shortcode(stripslashes( htmlspecialchars_decode($embed) )) . '[/x_video_embed]' );

    please update x theme with this little improvisation, it easily add support to [ ] shortcode videos.

    ——————————————————————-
    Maybe, this line could me much more improved, if there is no < > [ ] in $embed, and $embed is not empty, then wp_oembed_get should be opened …

    echo do_shortcode( '[x_video_embed type="' . $aspect_ratio . '" no_container="true" class="mvn"]' . wp_oembed_get( "https://www.youtube.com/watch?v=pbv5Q6-NKXY", $args ) . '[/x_video_embed]' );
    so that the user can easily add an supported link of a video hoster.

    #1010322
    Rue Nel
    Moderator

    Hello There,

    We certainly appreciate the feedback! This is something we can add to our list of feature requests. This way it can be taken into consideration for future development. All of these items are discussed with our team internally and prioritized based on the amount of interest a particular feature might receive.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1008812 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>