Gradientthemes FrontPage Elements

By Gradient Themes

0+ active installationsVersion 1.0.4

Modular front-page sections (Post Slider, Services, Team, Testimonials, and FAQs) built with native WordPress core UI and shortcodes.

Description

FrontPage Elements is a lightweight, theme-agnostic companion plugin that provides modular front-page sections—Post Slider, Services, Team, Testimonials, and FAQs—via clean, accessible shortcodes for gradientthemes themes and compatible with any other themes.

Instead of adding heavy custom meta box frameworks or proprietary page-builder interfaces, FrontPage Elements uses native WordPress core content fields:

  • Post Title for headings, names, or questions
  • Post Editor (Content) for descriptions, bios, quotes, or answers
  • Featured Image for slide visuals, service icons, team photos, or client avatars
  • Excerpt for team member roles/positions or testimonial client company/title
  • Menu Order (page-attributes) for straightforward drag-free ordering

Assets (responsive CSS and dependency-free Vanilla JavaScript) are only loaded on pages where a FrontPage Elements shortcode is used, keeping your site fast and compliant with WordPress performance best practices.

Available Shortcodes

  1. Post Slider
    [gradientthemes_frontpage_elements_post_slider count=”3″ category=””]
    Displays recent standard WordPress posts with Featured Image, Title, Excerpt, and Permalink inside an accessible slider with keyboard navigation, previous/next buttons, and dot indicators.

    • count (optional): Number of posts to show. Default 3.
    • category (optional): Category slug to filter posts. Default empty (all categories).
  2. Services Section
    [gradientthemes_frontpage_elements_services count=”3″ columns=”3″]
    Displays entries from the Services (gtfe_service) custom post type using Featured Image/Icon, Title, and Content.

    • count (optional): Number of services to display. Default 3.
    • columns (optional): Grid columns on desktop (1 to 4). Default 3.
  3. Team Section
    [gradientthemes_frontpage_elements_team count=”4″ columns=”4″]
    Displays entries from the Team (gtfe_team) custom post type using Featured Image (photo), Title (name), Excerpt (role/position), and Content (bio).

    • count (optional): Number of team members to display. Default 4.
    • columns (optional): Grid columns on desktop (1 to 4). Default 4.
  4. Testimonials Section
    [gradientthemes_frontpage_elements_testimonials count=”3″ columns=”3″]
    Displays entries from the Testimonials (gtfe_testimonial) custom post type using Content (quote), Featured Image (client avatar), Title (client name), and Excerpt (company or role).

    • count (optional): Number of testimonials to display. Default 3.
    • columns (optional): Grid columns on desktop (1 to 4). Default 3.
  5. FAQ Section
    [gradientthemes_frontpage_elements_faq count=”6″]
    Displays entries from the FAQs (gtfe_faq) custom post type using Title (question) and Content (answer) in an accessible accordion powered by native <details> / <summary> markup and progressive Vanilla JS enhancement.

    • count (optional): Number of FAQ items to display. Default 6.

Theme Integration & Customization

FrontPage Elements uses CSS custom properties (--gtfe-accent, --gtfe-bg, --gtfe-card-bg, --gtfe-text, --gtfe-muted, --gtfe-border, --gtfe-radius) so active themes can seamlessly style every section to match their design system without !important overrides.

Installation

  1. Upload the gradientthemes-frontpage-elements folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress Plugins screen directly.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Visit Tools → FrontPage Elements in the WordPress admin menu to view quick links and copy-ready shortcode examples.
  4. Add Services, Team members, Testimonials, or FAQs from the Tools menu, and paste the shortcodes into any page, post, or Shortcode block.

FAQ

Does this plugin work with any WordPress theme?

Yes. FrontPage Elements outputs semantic HTML with scoped .gtfe-* classes and CSS custom properties that adapt cleanly to block themes, classic themes, and hybrid themes.

Where do I enter a Team member’s role or a Testimonial author’s company?

In the standard WordPress Excerpt box when editing a Team member or Testimonial. Using native core fields keeps your database clean and portable.

How do I control the display order of Services, Team, Testimonials, or FAQs?

Set the Order value under Post Attributes / Summary in the editor. Items are sorted by menu_order ascending first, then by publish date.

Are CSS and JS loaded on every page?

No. The stylesheet and script are registered globally and enqueued only when at least one [gradientthemes_frontpage_elements_*] shortcode is present on the page.

Changelog

1.0.3

  • Fixed WordPress.org plugin compliance issues.
  • Moved admin guide page and custom post type menus under the WordPress Tools menu.
  • Updated plugin text domain, shortcodes, constants, classes, functions, and asset prefixes to gradientthemes-frontpage-elements.
  • Fixed HTML entity escaping in Post Slider excerpts.

1.0.0

  • Initial release featuring Post Slider, Services, Team, Testimonials, and FAQ shortcodes, native Custom Post Types, and the FrontPage Elements admin guide.