• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

[HELP] All Widgets only Show First Label (Atlas 2.2)

sijibae

Active member
Apr 23, 2019
132
45
28
Maybe this case very easy for some blogger expert or web coders, but i am very confused to solve this issue.

Template link

And i was looked around but no luck.

Real JS before
JavaScript:
function postCat(e,a){var s=e[a].category;return s?'<span class="postCat" data-cat="'+s[0].term+'"><a href="/search/label/'+s[0].term+'">'+s[0].term+"</a></span>":""}

I already worked with below JS. Tryng to mix up but still failed. IF you not mind, please add more function to show certain/specific label.

Example : Archiver, Software, Compression. I want Archiver & Software and hide for Compression. Because label is set ordered by alphabet.

JavaScript:
function postCat(e,a){var s=e[a].category;return s?'<span class="postCat" data-cat="'+s[0].term+'"><a href="/search/label/'+s[0].term+'">'+s[0].term+"</a></span>":""}

// 1ST BEAUTY =====================


/**
 * @param {Array} posts
 * @param {number} index
 * @param {string} category
 * @return {?}
 */
function postCat(posts, index, category) {
  category = posts[index].category;
  return category ? '<span class="postCat" data-cat="' + category[0].term + '"><a href="/search/label/' + category[0].term + '">' + category[0].term + "</a></span>" : "";
}


JavaScript:
function postCat(e,a){var s=e[a].category;return s?'<span class="postCat" data-cat="'+s[0].term+'"><a href="/search/label/'+s[0].term+'">'+s[0].term+"</a></span>":""}

// 2nd BEAUTY  =====================

function postCat(posts, index) {
  var category = posts[index].category;
  return category ? '<span class="postCat" data-cat="' + category[0].term + '"><a href="/search/label/' + category[0].term + '">' + category[0].term + "</a></span>" : "";
}

Thank you!

I have edited the JS like below, but still show first label only. Where is the mistake?
JavaScript:
 
Last edited:
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock