Home › Toolset Professional Support › [Resolved] Hide Mediaelement
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)
Tagged: Front-end display
This topic contains 8 replies, has 2 voices.
Last updated by Shane 7 years, 9 months ago.
Assisted by: Shane.
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">„{{ data.title }}“</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">„{{{ data.title }}}“</span> <# if ( data.artists && data.meta.artist ) { #> <span class="wp-playlist-item-artist"> — {{ data.meta.artist }}</span> <# } #> <# } #> </a> <# if ( data.meta.length_formatted ) { #> <div class="wp-playlist-item-length">{{ data.meta.length_formatted }}</div> <# } #> </div> </script>
Or better can you put that please in a js file not inline?
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
Yes, is the page where a view is.
Can you give me you mailadress i will send you the link.
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
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
I have disabled the layout pluign you can check site again.
Would be nice if this code is not inline.
Thanks Matthias
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.
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