Click to Read More Button

Description

The Click to Read More Button plugin allows you to add a customizable “Read More” button to your WordPress posts and pages. When visitors click the button, the full content is revealed smoothly without any page reload.

Key Features:

  • Customizable Appearance: Choose button colors, hover colors, and text colors
  • Flexible Content Control: Set after how many lines the button should appear
  • Post Type Selection: Choose which post types to apply the functionality to
  • Exclusion Options: Exclude specific pages/posts by ID
  • Custom Button Text: Change the button text to match your site’s tone
  • Auto-Detection: Automatically includes homepage and blog pages if set to static pages
  • Public CPT Support: Works with all public custom post types
  • Performance Optimized: Lightweight code that only loads where needed
  • WordPress Guidelines Compliant: Follows all WordPress coding standards and security practices

Perfect for:

  • Blog posts with long content
  • Product descriptions
  • Service pages
  • News articles
  • Any content where you want to improve readability and user engagement

Easy Setup:

  1. Install and activate the plugin
  2. Go to Settings > Read More Button
  3. Configure your preferences (colors, text, line count, post types)
  4. The button will automatically appear on your selected content

Security & Performance:

  • All data is properly sanitized and escaped
  • Follows WordPress security best practices
  • Lightweight and optimized for performance
  • No impact on site speed when not in use

Developer Information

Technical Details:
* Uses WordPress coding standards and security practices
* All data properly sanitized and escaped
* Follows WordPress plugin guidelines
* Uses proper enqueue methods for scripts and styles
* Implements WordPress hooks and filters correctly
* Translation ready with proper text domain

Hooks and Filters:
* click_to_read_more_button_content_filter – Filter the content before applying read more functionality
* click_to_read_more_button_button_text – Filter the button text
* click_to_read_more_button_should_show – Filter to control where the button should appear

Support:
For support and feature requests, please contact the plugin author or submit issues through the WordPress.org support forums.

Screenshots

  • Click to Read More Button Plugin settings page with all customization options
  • Read More button appearance on frontend

Installation

  1. Upload the plugin files to the /wp-content/plugins/click-to-read-more-button directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Use the Settings > Read More Button screen to configure the plugin.
  4. The Read More button will now appear on your selected post types after the specified number of lines.

FAQ

How do I customize the button appearance?

Go to Settings > Read More Button in your WordPress admin. You can customize:
* Button background color
* Button hover color
* Text color
* Button text

Can I choose which post types show the Read More button?

Yes! In the settings page, you can select which post types should display the Read More button. By default, it’s enabled for posts only, but you can enable it for pages and all public custom post types.

How do I exclude specific pages or posts?

In the settings page, there’s an “Exclude Pages/Posts by ID” field where you can enter comma-separated IDs of pages/posts you want to exclude (e.g., 1,2,3).

What happens when someone clicks the Read More button?

The hidden content is revealed smoothly, and the button disappears. There’s no “hide” functionality – once expanded, the content stays visible for better user experience.

Does this work with custom post types?

Yes! The plugin automatically detects all public custom post types and includes them in the post type selection options.

Will this affect my site’s performance?

No, the plugin is lightweight and only loads its scripts and styles on pages where the Read More functionality is enabled. It has no impact on pages where it’s not being used.

Can I change how many lines are shown before the button appears?

Yes, you can set the number of lines in the settings page. The default is 14 lines, but you can adjust this from 1 to 50 lines based on your content needs.

How does the line counting work?

The plugin uses character counting (approximately 90 characters per line) to determine when to show the button. The actual visual lines may vary based on your content length, font size, screen width, and theme styling.

Is this plugin translation ready?

Yes, the plugin is fully prepared for translation and follows WordPress internationalization standards.

Does the plugin work with caching plugins?

Yes, the plugin is compatible with all major caching plugins as it doesn’t use any server-side processing for the Read More functionality.

Reviews

There are no reviews for this plugin.

Contributors and Developers

“Click to Read More Button” is open source software. The following people have contributed to this plugin.

Contributors

Change Log

1.0.0

  • Initial release
  • Customizable button colors and text
  • Post type selection functionality
  • Line count configuration
  • Exclude specific pages/posts functionality
  • Support for static homepage and blog pages
  • Auto-detection of public custom post types
  • Proper WordPress security and coding standards compliance
  • Admin notices for activation and settings saved
  • Settings page with version display
  • Comprehensive documentation