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
HeaderSticky header, dark mode toggle
Colors & TypographyColor presets, fonts
LayoutContent width, sidebar position
Homepage HeroFeatured post 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
FooterCopyright, footer widgets
SEOMeta description, schema
Cookie ConsentCookie consent banner

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
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 8 color presets optimized for both light and dark mode:

  • Slate Pro (default)
  • Ocean Blue
  • Forest Green
  • Sunset Orange
  • Berry Purple
  • Rose Pink
  • Midnight
  • Minimal

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 FontSystem, Inter, Merriweather
Heading FontSystem, Inter, Merriweather
Font SizeAdjustable per element
Line HeightLine spacing

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.


Homepage Hero

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

Hero Modes

ModeDescription
Featured PostDisplays one featured post in large size
Custom HeroCustom HTML content you create
No HeroDisables hero section

Using Featured Post

  1. Go to CustomizeTheme OptionsHomepage Hero
  2. Select Hero Mode: Featured Post
  3. Choose a post from the Featured Post dropdown
  4. Click Publish

Default

If no post is selected, the system will display the latest post.

Using Custom Hero

  1. Select Hero Mode: Custom Hero
  2. Enter HTML code in the Custom Hero Content textarea
  3. 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 as arranged in Customizer
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. Click Select Posts to choose posts
  4. Set display order
  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

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 for 18+ programming languages.

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
  • WhatsApp
  • Telegram
  • 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

Facebook, X (Twitter), Instagram, YouTube, LinkedIn, TikTok, Pinterest, GitHub, Dribbble, Behance, Discord, Telegram, WhatsApp, 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.


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

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 Premium