Hi, is it possible to hide the “All” button on our social feeds (Facebook/Instagram)? This way when we post duplicate posts on both Facebook and Instagram they don’t show as double on the “All” feed. Instead, customers can see the Facebook feed by default, but can select the instagram feed if they choose.
Pages with the social widgets on our website are:
Kind regards,
Michael
Irene
November 27, 2025, 9:54am
4
Hi @Michael_Surnak
I’m happy to provide you with a script for your request:
const waitForElement = (selector, root = document) =>
new Promise((res) => {
const observer = new MutationObserver(() => {
const element = root.querySelector(selector);
if (element) {
res(element);
observer.disconnect();
}
});
observer.observe(root, {
childList: true,
subtree: true,
});
});
const init = async () => {
const tabsContainer = await waitForElement('.es-tabs-container');
const tabsNames = [...tabsContainer.querySelectorAll('.es-tab-item-source-name')];
tabsNames.forEach((tabName) => {
const text = tabName.textContent.toLowerCase();
if (text === 'all') {
tabName.closest('.es-tabs-slider-item').remove();
}
if (text === 'facebook') {
tabName.click();
}
});
};
init();
I applied it to the Custom JS section of the Social Feed on this page: https://k9poopertroopers.com.au/ , and it looks quite great to me
Check it out too and let me know!
1 Like
Hi Irene,
Thank you that code works great on the widgets on:
But for some reason it doesn’t work on the social feed widget on:
Any idea why that is?
Update:
I discovered that the “Group Sources by Platform” setting must be turned on for this JS to work. All fixed—thank you!
1 Like