#60979 Spotify embeds no longer generating when you paste in the link to the WYSIWY

Landing Forums JupiterX WordPress Theme Spotify embeds no longer generating when you paste in the link to the WYSIWY

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • Jon Duncan

    Hello,

    Hope you are well. After the last round of updates when I paste in a Spotify link to the WYSIWYG editor it no longer generates the playlist embed like it used to. (it still works for YouTube links). While I need this to work on my Playlist custom post type (set up using Jet), it doesn’t work anywhere else too. The existing Spotify embeds work, I just cant generate any more.

     

    Thanks!

    Nodari Support Team

    Hey there

    let’s check whether this is theme problem or not, please activate one of the default WordPress themes and check if you have the same problem, if yes then this is not theme problem and we need to search solution somewhere else, otherwise, we will investigate it further

    Best regards

    Jon Duncan

    OK, so i have found that this is a WordPress issue, as they no longer seem to support just pasting in the link. BUT, the solution to this is to use an iFrame and there is a JetEngine issue now. I use JetEngine to create a custom post type: Playlist.

    two problems – 1) the wysiwyg editor strips html. this means <iframe src=”https://open.spotify.com/embed/playlist/0iqmWqaXdVKEY4o8S9zgP9&#8243; width=”300″ height=”380″ frameborder=”0″ allowtransparency=”true” allow=”encrypted-media”></iframe> gets replaced to just <p></p>. I would really like to turn this off! 2) my workaround is to use a text area but for some reason when I put the same code in as above when it’s published to the site it becomes: <iframe src=”\&quot;https://open.spotify.com/embed/playlist/0iqmWqaXdVKEY4o8S9zgP9\&quot;” width=”\&quot;300\&quot;” height=”\&quot;380\&quot;” frameborder=”\&quot;0\&quot;” allowtransparency=”\&quot;true\&quot;” allow=”\&quot;encrypted-media\&quot;”></iframe>

    Can you either stop JetEngine stripping code in the WYSIWYG or stop the text area from changing my code!

    Jon Duncan

    Spoke to Crocoblock and because I got the plugin from you guys they said it’s something you will need to support

    Nodari Support Team

    Hey John

    As I can see you already have playlists added on your playlist post type, for example here: https://www.isolationradiostation.com/playlist/leticia-gurjao/ Is this problem already fixed?

    Thanks

    Jon Duncan

    No, I promise I will let you know if the problem is solved.

    Can you please look in to the isse.

    Private
    Jon Duncan
    This reply has been marked as private.
    Mohsin Al-Rabieai Support Team

    My apologies for the inconvenience. Actually, since it’s related to Jet Engine plugin we can not do much things for it. However, I went ahead and modified wp-content/plugins/jet-engine/includes/core/functions.php and changed this function:

    function jet_engine_sanitize_wysiwyg( $input ) {
    	$input = wpautop( $input );
    	return wp_kses_post( $input );
    }

    To this:

    function jet_engine_sanitize_wysiwyg( $input ) {
    	//$input = wpautop( $input );
    	return $input; //wp_kses_post( $input );
    }

    And the iframe is now showing up in the WYSIWYG editor. Please note that as soon as you update the Jet Engine plugin, you need to apply this fix again. Hope it helps ūüôā

    Jon Duncan

    You cant have crocoblock say they cant support it because I got it from you and you say you dont support it because it’s a 3rd party plugin!

    Also, the code doesnt get sterilised now but it still doesnt appear on the front end using the WYSIWYG editor and the text box workaround I made still changes the code as mentioned in my original post

    Jon Duncan

    Can anybody help here? Your theme used to work beautifully now it doesn’t. My entire site revolves around embedding Spotify and because the JetEngine plugin changes the code I put in it no longer functions properly. Please

    Tatyana Hutsol Support Team

    Hello,

     

    Sorry for a delay.

    I checked a post on your staging site and the playlist is shown https://take.ms/fLG9m :

    https://isolationstage.wpengine.com/playlist/isaac-tomiczek/

    Have you found a solution?

    Note, when you add some code in the backend, it may be not visible even in WYSIWYG editor, but will be shown on frontend (it’s also related to shortcodes when adding in Elementor editor in Shortcode widget).

     

    Looking forward to your reply.

    Regards.

Viewing 11 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic.
Login