K2 item layout

Support forum dedicated to GameNews game Joomla template perfect for gamers, game portal news and reviews with dedicated extensions for rating and video support
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Sep 26, 2014 2:21 pm
Reply with quote
Report this post
Hi. I got a problem with K2 item layout. I setted don't show these elements:
Image

But there still is empty <ul> element:
Image

Please, help me to remove this element.
User avatar
Junior Boarder

teitbite
Sat Sep 27, 2014 10:26 am
Reply with quote
Report this post
Could you please provide me with a URL to your website, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it? It is a lot easier for us to diagnose issues when we have a live site to examine.
User avatar
Moderator

teitbite
Mon Sep 29, 2014 9:28 am
Reply with quote
Report this post
Hi

I think this can be fixed with an additional script easier than with recodding the layout. Please add this to /layout/block/head.php

Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
$('ul').each(function(){
if( $(this).html().trim() == '' ) {
$(this).remove();
}
});
});})(jQuery)</script>
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.