Skip to content

SastraPro Theme Configuration

Complete guide to configure the SastraPro theme after installing it on your WordPress website.

Explore Directly in Customizer

All theme settings are available in the Customizer (AppearanceCustomizeTheme Options). Each option includes a brief description, so you can explore and experiment without reading this guide. This page serves as additional reference if you need more detailed explanations.

Configuration List

SettingDescription
Demo ImportInstall demo content with one click
HeaderSticky header, menu alignment, dark mode toggle
Colors & TypographyColor presets, fonts
LayoutContent width, sidebar position
Homepage HeroFeatured posts (up to 3, auto slider) or custom content
Editor's PickCurated posts section
Archive & IndexGrid layout, pagination
Single PostFeatured image, related posts
Table of ContentsAuto-generated TOC
Reading Progress BarReading progress indicator
Syntax HighlightingCode syntax highlighting
Share ButtonsSocial media share buttons
Social IconsSocial media links
AdvertisementsAdSense placement
Custom ScriptsGoogle Analytics, GTM, tracking codes
FooterCopyright, footer widgets
SEOMeta description, schema
Cookie ConsentCookie consent banner
Import / Export SettingsBack up and migrate theme settings

Demo Import

The fastest way to make your website look exactly like the theme demo — sample content, widgets, menus, and all Customizer settings are applied automatically. (Available since version 1.2.8)

Import Steps

  1. After activating the theme, a notice appears with an Install One Click Demo Import button — click it to install the free plugin (or install it manually from PluginsAdd New)
  2. Go to AppearanceImport Demo Data
  3. Click the import button on the SastraPro Demo card
  4. Wait for the process to finish (a few minutes, as demo images are downloaded)

Once finished, the theme automatically applies Customizer settings, assigns menu locations, sets the hero and Editor's Pick posts, and configures the homepage post count — no extra manual steps.

Plugin Can Be Removed

After the import completes, the One Click Demo Import plugin can be deactivated or deleted — it does not affect the imported result.


Accessing Theme Settings

  1. Login to your WordPress Dashboard
  2. Go to AppearanceCustomize
  3. Select the Theme Options panel

Real-time Preview

Every change you make will be instantly visible in the preview panel on the right.


Settings for the website header appearance.

OptionFunctionDefault
Sticky HeaderHeader stays visible when scrollingOn
Hide on Scroll DownHeader hides when scrolling down, shows when scrolling upOff
Menu AlignmentHorizontal alignment of the main navigation: Left, Center, RightLeft
Show Site TaglineDisplay tagline in headerOn
Enable Dark ModeShow dark mode toggle buttonOn

How to Configure

  1. Go to CustomizeTheme OptionsHeader
  2. Enable or disable options as needed
  3. Click Publish to save

Colors & Typography

Color Presets

SastraPro provides 14 color presets optimized for both light and dark mode:

  • Slate Pro (default)
  • Default Light
  • Default Dark
  • Ocean Blue
  • Forest Green
  • Warm Terracotta
  • Midnight
  • Blush Rose
  • Sage Green
  • Plum Purple
  • Coffee Brown
  • Indigo Night
  • Sand Beige
  • Crimson

How to Select a Preset

  1. Go to CustomizeTheme OptionsColors
  2. Select a preset from the Color Preset dropdown
  3. Click Publish

Custom Colors

If presets don't suit your needs, you can set colors manually:

OptionFunction
Background ColorBackground color
Text ColorMain text color
Accent ColorAccent color (links, buttons)
Border ColorBorder line color
Surface ColorCard/box surface color
Muted Text ColorSecondary text color

Typography

OptionChoices
Body Font10 choices: System Default, Inter, Open Sans, Roboto, Lato, Merriweather, Lora, Playfair Display, Poppins, Source Sans Pro
Heading FontSame 10 choices as Body Font
Font SizeAdjustable per element
Line HeightLine spacing

Self-hosted Fonts

All fonts (except System Default) are served directly from the theme — no external requests to Google Fonts, privacy-friendly and GDPR-compliant.


Layout

Page structure settings.

OptionChoicesDefault
Container Width960px - 1400px1200px
Sidebar PositionNone, Left, RightRight
Back to Top ButtonShow/HideShow

How to Configure

  1. Go to CustomizeTheme OptionsLayout
  2. Use the slider to adjust container width
  3. Select sidebar position or disable it
  4. Click Publish

No Sidebar Layout

Select Sidebar Position: None for a modern full-width appearance.

Full Width Page Template

For specific pages that need full width (landing pages, sales pages), use the bundled template:

  1. Edit the desired page
  2. In the Page panel (right side of the editor), under Template, select SastraPro Full Width
  3. Update the page

Homepage Hero

Hero section at the top of the homepage with image and gradient overlay.

Hero Modes

ModeDescription
Featured PostDisplays up to 3 featured posts — automatically becomes a slider when more than one is selected
Custom HeroCustom content: heading, subheading, button, and background image
No HeroDisables hero section

Using Featured Post

  1. Go to CustomizeTheme OptionsHomepage Hero
  2. Select Hero Mode: Featured Post
  3. In Featured Posts, choose up to 3 posts from the dropdown
  4. Arrange the order with the ▲▼ buttons on the selected-post list — this becomes the slide order
  5. Click Publish
OptionFunction
Badge TextChange the featured badge label (default: "Featured")
Thumbnail StyleImage display style: wide, stacked, compact, or no image
Text AlignmentLeft, center, or right
Slider AutoplaySlides change automatically (with interval setting)
Slider DotsShow slider navigation dots

Default

If no post is selected, the system will display the latest post. The slider is only active when more than one post is selected.

Using Custom Hero

  1. Select Hero Mode: Custom Hero
  2. Fill in the available fields: Heading, Subheading, Button Text, and Button URL
  3. Choose a Hero Image as the background (optional)
  4. Fine-tune the appearance: Overlay (dark layer opacity), background Blur, Text Color (light/dark), and Alignment
  5. Click Publish

Editor's Pick

Curated posts section displayed on the homepage with 2-column layout.

OptionFunction
Enable SectionEnable/disable section
Section TitleSection heading (default: "Editor's Pick")
Post SelectionSelect posts to display (maximum 5)
Display OrderPost display order

Layout

  • Left Column: First post with large thumbnail (vertical card)
  • Right Column: Posts 2-5 with small thumbnails (horizontal cards)
  • Mobile: Single column, all horizontal

Order Options

OptionDescription
CustomOrder follows your selected-post list — arrange with the ▲▼ buttons
Date (Newest)Newest to oldest
Date (Oldest)Oldest to newest
Title (A-Z)Alphabetically A-Z
Title (Z-A)Alphabetically Z-A
Comment CountMost comments first
RandomRandom order

How to Configure

  1. Go to CustomizeTheme OptionsEditor's Pick
  2. Enable Enable Section
  3. Choose posts from the Select Posts dropdown (maximum 5)
  4. Arrange the order with the ▲▼ buttons next to each selected post (available since version 1.2.8; make sure Display Order = Custom)
  5. Click Publish

Archive & Index

Settings for archive, category, and tag pages.

Grid Layout

OptionDisplay
1 ColumnHorizontal cards (image left, text right)
2 Columns2-column grid
3 Columns3-column grid

Pagination

TypeFunction
NumberedNavigation with page numbers
Load MoreButton to load more posts (AJAX)
Infinite ScrollAuto-loads on scroll

Post Meta

Choose information displayed on each post card:

  • Author
  • Date (publication date)
  • Reading Time (estimated read time)
  • Comment Count

Single Post

Settings for individual post pages.

OptionFunctionDefault
Show Featured ImageDisplay featured imageOn
Featured Image RatioImage ratio: 21:9 (Ultrawide), 16:9 (Widescreen), 4:3 (Standard), Original (Auto)21:9

Displays related articles based on categories and tags.

OptionFunctionDefault
Related Posts CountNumber of related posts (0-6)3

Disable Related Posts

Set Related Posts Count to 0 to hide the section.

Post Meta

Choose information to display:

  • Author Info (author name and bio)
  • Publication Date
  • Modified Date
  • Reading Time
  • Category Tags

Reading Experience Features

FeatureFunction
Reading Progress BarVisual progress bar while reading
Table of ContentsAuto-generated from headings
Code Syntax HighlightingCode syntax highlighting
Share ButtonsSocial media share buttons
Post NavigationLinks to previous/next posts

Table of Contents

Table of Contents is automatically generated from headings (H2, H3, H4, H5, H6) in posts.

How to Enable

  1. Go to CustomizeTheme OptionsSingle Post
  2. Scroll to Reading Experience section
  3. Enable Table of Contents
  4. Click Publish

TOC Settings

OptionDefaultDescription
PositionSidebarTOC position: sidebar or before content
Min Headings3Minimum headings to show TOC
CollapsibleOffCan be collapsed/expanded
StickyOnTOC follows scroll in sidebar

Features

  • Active Highlight: TOC highlights the heading currently being read
  • Smooth Scroll: Clicking TOC item scrolls smoothly to heading
  • Nested List: H3 headings become sub-items of H2, etc.

Reading Progress Bar

Visual bar at the top of the page showing article reading progress.

How to Enable

  1. Go to CustomizeTheme OptionsSingle Post
  2. Scroll to Reading Experience section
  3. Enable Reading Progress Bar
  4. Click Publish

How It Works

  • Bar appears at the very top of the page
  • Bar color follows the theme's accent color
  • Progress is calculated based on scroll position relative to article length
  • Automatically adjusts when window is resized

Syntax Highlighting

Code syntax highlighting feature using Prism.js with autoloader — all programming languages are supported, and only the languages in use are loaded.

How to Enable

  1. Go to CustomizeTheme OptionsSingle Post
  2. Scroll to Reading Experience section
  3. Check Code Syntax Highlighting
  4. Click Publish

How to Use

To enable syntax highlighting, add a language comment on the first line of the code block:

JavaScript:

// lang: javascript
function hello() {
  console.log("Hello World!");
}

PHP:

// lang: php
<?php
function hello() {
    echo "Hello World!";
}

Python:

# lang: python
def hello():
    print("Hello World!")

CSS:

/* lang: css */
.button {
  background: #0f172a;
  color: #ffffff;
}

HTML:

<!-- lang: html -->
<div class="container">
  <h1>Hello World</h1>
</div>

Bash/Shell:

# lang: bash
npm install
npm run build

Supported Comment Formats

FormatExample
// lang: [language]// lang: javascript
// language: [language]// language: php
# lang: [language]# lang: python
/* lang: [language] *//* lang: css */
<!-- lang: [language] --><!-- lang: html -->

Language Aliases

AliasLanguage
jsjavascript
tstypescript
pypython
rbruby
sh, shellbash
ymlyaml
html, xml, htmmarkup

Supported Languages

  • Web: HTML, CSS, JavaScript, TypeScript, JSON, XML, YAML
  • Backend: PHP, Python, Ruby, Java, Go, Rust, C, C++, C#
  • Database: SQL, GraphQL
  • Shell: Bash, PowerShell
  • Others: Markdown, Docker, Kotlin, Swift, Dart

Syntax Highlighting Features

  • Line Numbers: Automatic line numbers
  • Copy Button: Copy button in top right corner (appears on hover)
  • Dark Mode: Colors adjust to light/dark theme
  • On-demand Loading: Only loads languages that are needed

Without Language Hint

If there's no // lang: comment, code blocks will display without highlighting (plain text with theme styling).


Share Buttons

Buttons to share articles to various social media platforms.

Supported Platforms

  • Facebook
  • Twitter/X
  • LinkedIn
  • Pinterest
  • WhatsApp
  • Telegram
  • Email
  • Copy Link

How to Enable

  1. Go to CustomizeTheme OptionsSingle Post
  2. Scroll to Reading Experience section
  3. Enable Share Buttons
  4. Click Publish

How It Works

  • Buttons appear at the end of article (before related posts)
  • Clicking a button opens a share popup
  • "Copy Link" copies the article URL to clipboard

Social Icons

Display links to your social media accounts in header and footer.

Supported Platforms

16 platforms: Facebook, X (Twitter), Instagram, YouTube, LinkedIn, TikTok, Pinterest, Threads, Discord, GitHub, Telegram, WhatsApp, Mastodon, Bluesky, Email, RSS Feed.

How to Configure

  1. Go to CustomizeTheme OptionsSocial Icons
  2. Enter the full URL for each platform
  3. Leave the field empty if you don't want to display it
  4. Click Publish

Full URL Required

Make sure to enter the full URL including https://. Example: https://facebook.com/username


Advertisements

Settings for ad placement (Google AdSense or other ad networks).

OptionFunction
Enable AdvertisementsEnable ads feature
In-Content Ad CodeAd code that appears within content
Show Ad After ParagraphAd position (after paragraph N)
After Content Ad CodeAd code after content ends

How to Set Up Ads

  1. Go to CustomizeTheme OptionsAdvertisements
  2. Enable Enable Advertisements
  3. Paste your AdSense code in the appropriate field
  4. Set in-content ad position (default: after paragraph 3)
  5. Click Publish

Ad Performance

Position after paragraph 2 or 3 typically provides the best CTR without disrupting the reading experience.


Custom Scripts

Place tracking codes such as Google Analytics, Google Tag Manager, or site verification scripts.

OptionFunction
Header ScriptsCode inserted before </head>
Footer ScriptsCode inserted before </body>

How to Set Up

  1. Go to CustomizeTheme OptionsCustom Scripts
  2. Paste the code (including <script> tags) into the appropriate field
  3. Click Publish

Administrators Only

For security, only users with full capabilities (administrators) can save scripts in these fields.


Website footer area settings.

OptionFunction
Before Footer WidgetsHTML content above footer widgets
Copyright TextCopyright text (supports placeholders)
Show Social IconsDisplay social icons in footer
Footer Widget ColumnsNumber of widget columns (1-4)

Use placeholders for dynamic data:

  • {year} - Current year
  • {site} - Website name

Example: Copyright © {year} {site}. All rights reserved.

  1. Go to AppearanceWidgets
  2. Add widgets to Footer 1, Footer 2, etc.
  3. Active columns correspond to Customizer settings

SEO

Search engine optimization settings.

FeatureDescription
Auto Meta DescriptionGenerated from excerpt or content (160 characters)
Meta KeywordsAutomatically from tags and categories
Open Graphog:title, og:image, og:description for sharing
Twitter Cardssummary_large_image format
JSON-LD SchemaArticle schema with author info
Canonical URLWith pagination handling
Meta Robotsnoindex for 404, search, date archives

How to Configure

  1. Go to CustomizeTheme OptionsSEO
  2. Enable desired features
  3. Click Publish

SEO Plugins

If you use SEO plugins like Yoast, Rank Math, All in One SEO, SEOPress, or The SEO Framework, the theme will automatically disable duplicate SEO features to avoid conflicts.


Cookie consent banner for GDPR compliance.

OptionFunction
Enable Cookie ConsentEnable consent banner
Cookie MessageMessage to display

How to Enable

  1. Go to CustomizeTheme OptionsPrivacy & Cookie Consent
  2. Enable Enable Cookie Consent Banner
  3. Customize the message if needed
  4. Click Publish

How It Works

  • Banner appears at the bottom of the page for new visitors
  • Visitors can click Accept or Decline
  • Choice is saved for 365 days
  • Banner won't appear again after choosing

Import / Export Settings

Back up all theme settings or migrate them to another website. (Available since version 1.2.7)

Export

  1. Go to CustomizeTheme OptionsImport / Export
  2. Check the sections you want to export (or all of them)
  3. Click Export — a JSON file will be downloaded

Import

  1. On the destination website (with SastraPro active), open the same section
  2. Select the exported JSON file
  3. Check the sections you want to apply
  4. Click Import

Sensitive Settings

Sections containing scripts or ad codes are specially marked in the export list. Double-check before sharing an export file — make sure your Analytics/AdSense IDs don't end up on someone else's website.


LocationPosition
Primary MenuMain menu in header
Footer MenuMenu in footer area

How to Create a Menu

  1. Go to AppearanceMenus
  2. Click Create a new menu
  3. Name your menu
  4. Add items (Pages, Posts, Categories, Custom Links)
  5. Check menu location under Menu Settings
  6. Click Save Menu

Widget Areas

SastraPro has several widget areas:

AreaLocation
SidebarSidebar next to content
Footer 1-4Footer widget areas (columns configurable)

How to Add Widgets

  1. Go to AppearanceWidgets
  2. Select a widget area
  3. Click + to add a widget
  4. Choose the desired widget
  5. Configure widget settings
  6. Widgets save automatically

Dark Mode

SastraPro supports dark mode with features:

  • Manual Toggle - Button in header to switch modes
  • System Preference - Automatically follows OS settings
  • Persistent - User choice saved in browser (localStorage)

Enable/Disable Toggle

  1. Go to CustomizeTheme OptionsHeader
  2. Toggle the Enable Dark Mode option
  3. Click Publish

Customizing Dark Mode Colors

Dark mode colors can be customized:

  1. Go to CustomizeTheme OptionsColors
  2. Select a preset that already has dark mode colors
  3. Or set manually in Dark Mode Colors section

Breadcrumb navigation with Schema.org markup for SEO.

How It Works

  • Breadcrumbs automatically appear on post, page, category, tag, and archive pages
  • Format: Home → Category → Post Title
  • Uses Schema.org BreadcrumbList markup

Author Bio

Author information box that appears at the end of articles.

How to Enable

  1. Go to CustomizeTheme OptionsSingle Post
  2. Enable Show Author Bio
  3. Click Publish

Information Displayed

  • Avatar (from Gravatar)
  • Author name
  • Bio (from WordPress user profile)
  • Link to author archive page

Dokumentasi Tema Blogger & WordPress