Linux 软件免费装
Banner图

Simple Custom Content Adder

开发者 DavidoffNeal
sharethis
scottstorebloom
更新时间 2026年10月9日 21:18
PHP版本: 7.0 及以上
WordPress版本: 7.1
版权: GPLv2
版权网址: 版权信息

标签

block call to action promotion disclaimer custom content

下载

2.0.0 2.0.1

详情介绍:

The Simple Custom Content Adder (SCCA) does exactly what it says on the tin - adds some custom content to all of your posts and pages, simply. Write it once and it appears everywhere you asked for it. Change it once and every post and page changes with it. That is the whole idea: a disclaimer at the foot of every post, a promotion above every page, a sign-up prompt under every article - without touching your theme or editing a single post. Write it in the editor you already know Your content is written in the full WordPress editor, so you get bold and italics, links, lists, headings and the Add Media button. Paste in HTML if you prefer, and shortcodes from your other plugins work inside the box too. Put it where you want it Where a post uses the block or either shortcode, the automatic copy is left off, so your content never turns up twice on the same page. Style it without writing CSS Background colour, text colour, border colour and width, padding, font size, rounded corners and their radius, maximum width and alignment are all set with pickers and fields on the settings screen. A live preview sits at the top of the styling panel and updates as you change each value, so you can see the finished box before you save it. Or write the CSS yourself Two escape hatches for anyone who would rather be precise: Built to stay out of the way

安装:

  1. Upload the 'simple-custom-content-adder' folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Open Custom Content in your dashboard menu to write your content and style the box

屏幕截图:

  • The Styling tab, with a live preview of the box that updates as you change the colours, font size, padding, border, corners, width and alignment.
  • The Advanced tab, with the [scca] and [scca_hide] shortcodes and the content filter priority.
  • The CSS tab, where custom CSS can replace the generated styles entirely.

升级注意事项:

2.0.0 A full rebuild for modern WordPress, adding a Custom Content block, shortcodes, a new settings screen and a live preview. Your existing settings are migrated automatically. If you styled the box with CSS targeting #scca, change it to .scca.

常见问题:

Where are the settings?

In your dashboard under Custom Content. It is a top-level menu item, not under Settings or Plugins.

I have upgraded from version 1.x. Do I need to set everything up again?

No. Your content, colours, sizes and placement are carried across the first time you open the settings screen after upgrading, and the old settings are tidied away afterwards. Version 1.x had a single Posts / Pages / Both dropdown, which becomes a checkbox each. If you were on 1.0, which only ever showed the content on posts, Posts is ticked and Pages is not.

Nothing appears on my site. Why?

Three things to check:

  1. Locations - at least one of Posts and Pages has to be ticked.
  2. Content - an empty content box renders nothing at all, by design.
  3. The front page - your site's front page and blog index are deliberately left alone, even when Pages is ticked. Use the block or the [scca] shortcode if you want the box there.

Can I stop the content appearing on one particular post?

Yes. Add the [scca_hide] shortcode anywhere in that post's content. The box is left off that post, and every other post is unaffected.

Can I put the box somewhere other than before or after the content?

Yes, in two ways. Use the Custom Content block to place it exactly where you want it in the block editor, or the [scca] shortcode anywhere shortcodes are allowed - a widget, a template, a page builder. If you only ever want to place it by hand, untick both Posts and Pages and use the block or the shortcode alone.

Does the block keep its own copy of the content?

No. The block shows the content from the settings screen, so editing it once updates every post and page that uses the block. The editor preview is the real front-end markup, so what you see while editing is what your visitors get.

Can I use shortcodes inside my custom content?

Yes. The content is run through WordPress's shortcode handling just like post content, so shortcodes from your other plugins work inside the box.

Can I show a different box on different posts?

Not from this plugin - there is one box, shared by every post and page, which is what makes it a one-place change. Use [scca_hide] on the posts that should not have it.

I styled the box with CSS targeting #scca. Does that still work?

The box is now .scca rather than #scca, because it can appear more than once on a page - before and after your content, or several times via the shortcode. Change #scca to .scca in your CSS, or paste your rules into the Additional CSS box on the settings screen.

The box appears in the wrong place relative to another plugin's content.

Raise or lower Content Filter Priority on the Advanced tab. A lower number runs earlier, a higher number later, and 10 is WordPress's default.

Does it work with a caching plugin?

Yes. The box is rendered as ordinary HTML with no per-visitor content, so it caches safely.

更新日志:

2.0.1 2.0.0 1.1 1.0