

<strong>Adjust Ribbon Size in WordPress</strong> - Customize the cancer awareness ribbon size directly within the WordPress shortcode to match your website layout and design.
Cancer Awareness Ribbon Shortcode is a lightweight WordPress plugin that adds a shortcode for displaying a professionally designed awareness ribbon anywhere on your website.
The ribbon automatically adapts to the current awareness month and supports a wide range of awareness types including Cancer, Medical, Social, and Global causes.
The ribbon:
– Automatically changes color based on the current awareness month
– Supports single-color and multi-color (gradient) ribbons
– Uses a clean, scalable SVG with no background
– Works seamlessly with Elementor, Divi, WPBakery, Beaver Builder, Gutenberg, headers, footers, and widgets
– Includes a built-in admin shortcode builder with live preview
– Includes a friendly admin review prompt card
– Scales crisply at any size
– Improves visibility on light/dark backgrounds automatically
– Does not rely on external libraries or image files
– Includes accessibility-friendly ARIA labels
This plugin is ideal for:
– Awareness campaigns
– Non-profits and charities
– Medical practices
– Schools and community organizations
– Corporate social responsibility initiatives
– Site-wide awareness displays
Version 1.5.0 introduces:
– Admin settings page with live shortcode preview
– Default ribbon settings (size, type, month, category, label, list mode)
– Internal data structure refactor from cancer-only to awareness types
– Developer filter hook for registering custom awareness ribbons
– Improved builder integrations (Elementor, Divi, WPBakery, Beaver Builder)
– Foundation for future Pro features
Insert the ribbon anywhere using the shortcode:
[cancer_ribbon]
[cancer_ribbon size=”64″]
[cancer_ribbon label=”1″]
[cancer_ribbon type=”breast_cancer”]
[cancer_ribbon month=”10″]
[cancer_ribbon category=”Medical”]
[cancer_ribbon list=”1″ month=”11″ label=”1″]
[cancer_ribbon list=”1″ month=”10″ category=”Social” label=”1″]
Available attributes:
size – Size in pixels (default: 64)label – Show label text (1 or 0)type – Force a specific ribbon type keymonth – Force a specific month (1–12)category – Filter by category: Cancer, Medical, Social, Global (optional)list – If set to 1/true, lists all ribbons for the selected month (optional)Version 1.5.0 adds a top-level Awareness Ribbon admin page where you can:
Developers can extend the ribbon library using a filter hook:
add_filter( 'car_awareness_types', 'my_custom_awareness_ribbon' );
function my_custom_awareness_ribbon( $types ) {
$types['my_custom_cause'] = array(
'label' => 'My Custom Cause',
'month' => 6,
'colors' => array( '#123456', '#abcdef' ),
'category' => 'Global',
);
return $types;
}
This allows plugins and themes to register custom awareness ribbons without modifying core plugin files.
The plugin includes ribbon colors for many cancer awareness months and additional awareness types.
Examples include:
Additional awareness ribbons include (among others):
This plugin is licensed under the GPLv2 or later.
You are free to modify and redistribute this plugin under the same license.