You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何移除网站页脚中id为AmeriCommerce-powered-by-link的元素?

移除AmeriCommerce页脚版权链接的解决方案

Hey there! I’ve run into this exact scenario with AmeriCommerce sites before—those powered-by links can be tricky when they’re injected dynamically instead of living in your theme files. Here are a couple reliable ways to remove that element using the ID you found:

1. CSS 隐藏(最简单方案)

既然你已经拿到了元素的ID,用CSS就能直接把它隐藏起来。把这段代码添加到网站的自定义CSS区域(通常在后台的外观 > 自定义 > 额外CSS,或者主题设置面板里的自定义CSS选项):

#AmeriCommerce-powered-by-link {
  display: none !important;
}

!important 标记是为了确保这个样式能覆盖平台自带的默认样式,避免链接又被显示出来。

2. JavaScript 彻底移除(从DOM中删除)

如果CSS隐藏不起作用(有些平台可能会动态覆盖样式),可以用JavaScript把元素从页面DOM里彻底移除。把这段代码加到网站的自定义JavaScript区域,或者通过插件添加(如果主题不支持自定义JS的话):

原生JavaScript(无需jQuery)

// 等页面完全加载后再尝试移除元素
document.addEventListener('DOMContentLoaded', function() {
  const poweredByElement = document.getElementById('AmeriCommerce-powered-by-link');
  // 只有元素存在时才移除,避免报错
  if (poweredByElement) {
    poweredByElement.remove();
  }
});

jQuery版本(如果你的网站用了jQuery)

如果网站已经加载了jQuery,这段更简洁的代码也能生效:

jQuery(document).ready(function($) {
  $('#AmeriCommerce-powered-by-link').remove();
});

重要注意事项

  • 查看服务条款:移除这个链接之前,一定要仔细检查AmeriCommerce的服务条款。部分免费或低阶套餐可能要求保留这个版权链接,擅自移除可能违反协议。
  • 代码持久性:如果你更新了主题或者AmeriCommerce平台,可能需要重新添加这段代码,因为平台重置自定义设置后,你的修改可能会丢失。
  • CSS vs JS的区别:CSS只是视觉上隐藏元素,它仍然存在于页面源码中;而JavaScript会彻底删除元素,如果你不想它在页面里留下任何痕迹,JS方案更合适。

内容的提问来源于stack exchange,提问作者Chazz Decker

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 08:24:18