Skip to content

SalmanRavoof/salcodes

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
css
 
 
 
 
 
 
 
 

salcodes

A WordPress plugin to show how shortcodes work. This demo plugin is a companion piece to Kinsta's ultimate guide on shortcodes. It includes 3 unique examples with increasing complexities, demonstrating how different types of shortcodes are created.

1. Output the Current Year

  • Shortcode Tag: [current_year]
  • Type: Self-closing
  • Attributes: None

2. Insert a Call to Action Button

  • Shortcode Tag: [cta_button]
  • Type: Self-closing
  • Attributes: link | id | color | size | label | target

3. Wrap Content around a Titled Colorful Box

  • Shortcode Tag: [boxed]
  • Type: Enclosing
  • Attributes: title | title_color | color

About

A WordPress plugin to show how shortcodes work with 3 unique examples.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published