Skip Navigation

[Resolved] Hide Mediaelement

This support ticket is created 7 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 8 replies, has 2 voices.

Last updated by Shane 7 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#472836

How can i turn off this code? I don't need that, but Toolset Layout created this code in the footer.

<script type="text/html" id="tmpl-wp-playlist-current-item">
	<# if ( data.image ) { #>
	<img src="{{ data.thumb.src }}" alt="" />
	<# } #>
	<div class="wp-playlist-caption">
		<span class="wp-playlist-item-meta wp-playlist-item-title">&#8222;{{ data.title }}&#8220;</span>
		<# if ( data.meta.album ) { #><span class="wp-playlist-item-meta wp-playlist-item-album">{{ data.meta.album }}</span><# } #>
		<# if ( data.meta.artist ) { #><span class="wp-playlist-item-meta wp-playlist-item-artist">{{ data.meta.artist }}</span><# } #>
	</div>
</script>
<script type="text/html" id="tmpl-wp-playlist-item">
	<div class="wp-playlist-item">
		<a class="wp-playlist-caption" href="{{ data.src }}">
			{{ data.index ? ( data.index + '. ' ) : '' }}
			<# if ( data.caption ) { #>
				{{ data.caption }}
			<# } else { #>
				<span class="wp-playlist-item-title">&#8222;{{{ data.title }}}&#8220;</span>
				<# if ( data.artists && data.meta.artist ) { #>
				<span class="wp-playlist-item-artist"> &mdash; {{ data.meta.artist }}</span>
				<# } #>
			<# } #>
		</a>
		<# if ( data.meta.length_formatted ) { #>
		<div class="wp-playlist-item-length">{{ data.meta.length_formatted }}</div>
		<# } #>
	</div>
</script>
#472877

Or better can you put that please in a js file not inline?

#473026

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Matthias,

Thank you for contacting our support forum.

Is this on a page where a view is being rendered?

Could you end me a link to this page.

Looking forward to hearing from you soon.

Thanks,
Shane

#473027

Yes, is the page where a view is.
Can you give me you mailadress i will send you the link.

#473030

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Matthias,

You can just add the link to your next post.

I can just enable the private fields for your next response.

Thanks,
Shane

#473047

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Matthias,

Thank you for the link.

I'm not seeing how this is being generated by our Plugin as it seems as if its coming from a plugin that is creating a list.

What happens when you disable our Layouts plugin does this still occur ?

Please let m know.

Thanks,
Shane

#473065

I have disabled the layout pluign you can check site again.
Would be nice if this code is not inline.

Thanks Matthias

#473088

I activated all plugins again, but you can go to a 404 page and see the code is only on pages where i use you tool.

#473126

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Matthias,

I was able to replicate it but it seems to be a dynamically generated script so having a separate file wouldn't be possible.

Thanks,
Shane

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.