Skip to content

giuseppe-trisciuoglio/developer-kit / plugins/developer-kit-php/skills/wordpress/wordpress-sage-theme

wordpress-sage-theme

Verified

Provides WordPress theme development patterns using Sage (roots/sage) framework. Use when creating, modifying, or debugging WordPress themes with Sage, including (1): creating new Sage themes from scratch, (2): setting up Blade templates and components, (3): configuring build tools (Vite, Bud), (4): working with WordPress theme templates and hierarchy, (5): implementing ACF fields integration, (6): theme customization and asset management.

FileKindSize
SKILL.mdskill md12.6 KB
assets/starter-layout.blade.phpscript549 B
assets/starter-page.blade.phpscript1.6 KB
references/acf.mdmarkdown9.5 KB
references/blade.mdmarkdown5.1 KB
references/bud.mdmarkdown5.0 KB
references/sage.mdmarkdown2.4 KB

assets/starter-page.blade.php

View on GitHub
{{-- Starter Page Template
     Copy this to resources/views/page.blade.php as a starting point --}}
@extends('layouts.app')

@section('content')
  <main class="page-content">
    @while(have_posts())
      @php the_post() @endphp

      <article class="{{ get_post_type() }}-single">
        @php($title = get_field('page_title') ?: get_the_title())
        <h1 class="entry-title">{{ $title }}</h1>

        @if (get_field('page_subtitle'))
          <p class="entry-subtitle">{{ get_field('page_subtitle') }}</p>
        @endif

        <div class="entry-content">
          @if (have_rows('flexible_content'))
            @while (have_rows('flexible_content'))
              @php the_row() @endphp

              @switch(get_row_layout())
                @case('hero_section')
                  @include('components.sections.hero')
                  @break

                @case('text_section')
                  @include('components.sections.text')
                  @break

                @case('image_gallery')
                  @include('components.sections.gallery')
                  @break

                @default
                  <div class="default-content">
                    {{ the_content() }}
                  </div>
              @endswitch
            @endwhile
          @else
            {{ the_content() }}
          @endif
        </div>
      </article>

      @if (comments_open() || get_comments_number())
        <div class="comments-wrapper">
          {{ comments_template() }}
        </div>
      @endif
    @endwhile

    {{ the_posts_pagination() }}
  </main>
@endsection
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall