I have a shortcode which produces a table with a few columns. The last column contains a picture, and I have found a code snippet that makes the picture show. It goes like this:
[cfdb-datatable form="Model Registrieren" id="mytable" show="cf7-modelcounter,your-name,vorname,nachname,Bild01"]
{{AFTER}}
<script type="text/javascript" language="Javascript">
(function($) {
$(document).ready(function() {
$("#mytable td[title='Bild01'] > div > a").each(function() {
var href = $(this).attr('href');
var label = $(this).html();
var imgTag = '<img height="30" width="30" src="' + href + '" alt="' + label + '" >';
$(this).parent().html(imgTag);
})
});
})(jQuery);
</script>
{{/AFTER}}
[/cfdb-datatable]
Works just fine, the picture shows up.
But there is a big, ugly search fied on top of the table which I want to get rid of. I tried the option “header=”false”, but when I apply that to the shortcode, nothing happens.
[cfdb-datatable form="Model Registrieren" id="mytable" show="cf7-modelcounter,your-name,vorname,nachname,Bild01" header=”false"]
Anybody any kind of idea?
Thanks,
Evi
Only it doesn’t seem to work for me!
]]>”false"
but you need "false"
— the opening quote is the issue, the closing one appears to be OK.
If that fails, perhaps you can hide the undesired portion with a CSS rule. If you can provide a live link to a page with the table and describe exactly what you want gone, someone should be able to provide the exact CSS needed if you cannot determine this yourself.
]]>