Overview

TOP Custom Plugin is a WordPress plugin developed by Third Oak Productions LLC. It enhances your website by adding custom styles and functional shortcodes.

  • Version: 1.0
  • Author: Cory Keith

Features

1. Custom CSS Enqueue

This feature automatically enqueues a custom CSS file to the WordPress site. This allows you to define styles that can be applied throughout your site.

Usage

The custom CSS file is named top-custom-style.css and should be placed in the same directory as the plugin file. Any styles added to this file will be automatically loaded into your WordPress site’s front end.

2. Current Year Shortcode

The display_current_year shortcode displays the current year. It can also display a range of years starting from a specified year to the current year.

Usage

  • Shortcode: [display_current_year]
  • Attributes:
    • start: (optional) The starting year of the range.

Examples

  • Display Current Year Only:
    • Shortcode: [display_current_year]
    • Output: “2023” (if the current year is 2023)
  • Display Range from a Specific Year to Current Year:
    • Shortcode: [display_current_year start="2020"]
    • Output: “2020 – 2023” (if the current year is 2023)

Notes

  • The start attribute must be a valid year and less than or equal to the current year.
  • If start is not provided or is invalid, only the current year is displayed.

Installation

  1. Download the plugin folder.
  2. Upload it to your WordPress site under wp-content/plugins/.
  3. Navigate to the WordPress admin area and activate the plugin through the ‘Plugins’ menu.

Customization

  • Custom CSS: You can modify top-custom-style.css to add or change the styles as needed for your website.

Support

For support, please contact Third Oak Productions LLC here.