Learnhaven documentation

A WordPress theme for schools and education: private schools, colleges, kindergartens, language schools, online academies and arts schools. Six demos, admission enquiries, an events calendar, teachers, courses with fees, office hours and a fee estimator.
Thank you for choosing Learnhaven. This guide takes you from a fresh WordPress site to a copy of the demo with your own details. If something is not covered here, write to support@codememory.com — we answer within one working day.
- Version1.0.0
- WordPress6.5 or later
- PHP7.4 or later
- Live demoOpen the demo
Highlights
- Six education demos imported in one click
- Admission enquiry form with student details, start date and visit type, saved in your dashboard
- Events calendar with date badges, programme and upcoming-only lists
- Teachers with role, qualifications, subjects, campus and email
- Courses with fee, age or level, length and next start date
- Departments and event types to group courses, teachers and events
- Office hours with an "Open now" badge
- Fee estimator with a sibling discount
- 18 Elementor widgets (free Elementor)
- Every section also works as a shortcode
- Call / book bar on phones
- Light and dark mode
- Colours and fonts from the Customizer
- Block patterns and every core block styled
- Self-hosted fonts, nothing loaded from Google
- Translation ready, right-to-left support
- Child theme included
What is in the download
themeforest-learnhaven-wordpress-theme/ ├── learnhaven.zip ← the theme: upload this in WordPress ├── learnhaven-child.zip ← child theme, for your own code changes (optional) ├── plugins/learnhaven-core.zip ← the theme's plugin (also installed from inside the theme) ├── demo-content/ ← demo files for a manual import ├── documentation/ ← this guide, as HTML and PDF └── licensing/ ← GPL licence, font licences and credits
learnhaven.zip, not the whole download. Uploading the download zip gives the error
"The package could not be installed. The theme is missing the style.css stylesheet."Requirements
- WordPress 6.5 or later (tested up to 7.1).
- PHP 7.4 or later (8.2 or later recommended).
- For the demo import: PHP
memory_limit256M,max_execution_time300, upload size 32M. Most hosts already allow this; if an import stops half-way, ask your host to raise these values.
Every plugin the theme uses is free from wordpress.org. Nothing needs a paid licence.
Installing the theme
- In your dashboard, go to Appearance → Themes → Add New Theme → Upload Theme.
- Choose
learnhaven.zipand click Install Now, then Activate. - Optional: install and activate
learnhaven-child.zipthe same way (see Child theme).
Upload by FTP instead: unzip learnhaven.zip and copy the learnhaven folder to
wp-content/themes/, then activate it under Appearance → Themes.
Plugins
After activation, a notice at the top of the dashboard lists the plugins the theme uses. Click Begin installing plugins (or go to Appearance → Install Plugins), select them all, choose Install, then activate them.
| Plugin | What it adds | |
|---|---|---|
| Learnhaven Core | Required | Courses, teachers, events, departments, event types, reviews, admission form, office hours, fee estimator, widgets, shortcodes and the demo import. Included with the theme. |
| Elementor | Recommended | The free page builder used for the demo pages. The theme's own widgets appear in Elementor's Learnhaven group. |
| One Click Demo Import | Recommended | Imports a demo in one click. You can remove it after the import. |
The theme works without any plugin: posts, pages, menus, widgets and search are styled the same. The plugin is needed for the school features (courses, teachers, events, admission form…).
Importing a demo
The import gives you the demo site: pages, courses, teachers, events, reviews, posts, menus, widgets and the Customizer settings. Use it on a new site: it adds content next to what you already have.
- Install the plugins above.
- Go to Appearance → Import Demo Data.
- Pick a demo and click Import. It takes one to three minutes; keep the page open.
- Done: visit your site. The home page, menus and blog page are already set.
| Demo | Home page | Accent |
|---|---|---|
| Private school | /home-school/ | #be3a2a |
| College | /home-college/ | #1d5fbf |
| Kindergarten | /home-kids/ | #c2307a |
| Language school | /home-language/ | #0e7a6d |
| Online academy | /home-online/ | #7c3aed |
| Music & arts school | /home-arts/ | #b5452b |
All six home pages are imported with every demo; the demo you pick decides which one is the front page and which colours and header the Customizer uses. To switch later, go to Settings → Reading and choose another home page.
Manual import
If the one-click import is blocked by your host, use the files in demo-content/:
- Tools → Import → WordPress (install the importer when asked) → upload
content.xml. - Install Widget Importer & Exporter → Tools → Widget Importer & Exporter → upload
widgets.wie. - Install Customizer Export/Import → Appearance → Customize → Export/Import → upload
customizer-<demo>.dat. - Appearance → Menus → Manage Locations: set the main, top bar and footer menus. Settings → Reading: choose the home and blog pages.
After the import: your details
The demo uses a made-up phone number, address, office hours and fees. Replace them with yours, in this order:
- Phone number and top bar: Appearance → Customize → Learnhaven options → Header and top bar. Set Phone number, Top bar text (a short line such as your office hours) and the Label next to the phone. Every "Call" button on the site uses this number.
- Logo and site icon: Appearance → Customize → Site Identity.
- Colours: Appearance → Customize → Colors. The six demo home pages each have their own accent colour (see Page options); clear it there to use the Customizer colour.
- Office hours, fees and admission emails: Settings → Learnhaven Core (see Office hours, Fee estimator and Admission enquiries).
- Footer widgets: Appearance → Widgets → Footer column 1–4: edit the Contact details widget (address, phone, email).
- Your content: edit the courses, teachers, events and reviews in the dashboard menus of the same names, and replace the grey placeholder photos with your own.
Courses, teachers, events and reviews
The Learnhaven Core plugin adds four content types, a Departments list and an Event types list to the dashboard. Each content type has a Details box under the editor.
| Menu | Used for | Details |
|---|---|---|
Courses/courses/ | One page per course, class or programme (primary school, General English, piano lessons…). Shown by the Courses widget and on the courses archive. | Icon, fee ("$4,200"), fee note ("per term"), length, age or level, next start, and what students learn (one item per line). |
Teachers/teachers/ | Teachers, heads of department and staff. | Role, years of teaching, qualifications, subjects taught, campus and an optional email. The featured image is the portrait (a tall photo works best). |
Events/events/ | Open days, concerts, talks and sports days. Shown by the Events widget. | Date, time, place, entry ("Free, please book") and a programme (one line per item as time|item, for example 9:30|Welcome talk). |
| Reviews | Parent and student reviews shown by the Reviews widget (no page of their own). | Rating, reviewer ("Parent, Year 8"), course or class, where the review was left. The title is the reviewer's name; the text is the review. |
Departments (under Courses) group courses and teachers, for example Early years or Music & arts.
Each department has its own page at /department/<name>/, a course page shows the teachers of its
department, and the Courses and Teachers widgets can show one department only.
Event types (under Events) group events, with a page at /event-type/<name>/;
the Events widget can show one event type only.
Events are listed by date, soonest first. With Only upcoming events on (the default), past events are hidden; when no event is coming up, the widget shows the latest ones instead of an empty section, marked Past event.
The featured image of a course, event or post is used on its card and at the top of its page. Use landscape photos at least 1600 × 760 px.
Admission enquiries
The Admission form widget (or the [learnhaven_admission] shortcode) asks for the
parent's name, phone and email, the course or class, the student's name and age or year group, when they would like
to start, a preferred visit date and time, how they would like to meet you (campus tour, online information session
or phone call) and an optional message. Name and a phone number or email are required. Spam protection is built in
(a hidden field and a limit on repeated sends) and no other plugin is needed.
- Every enquiry is saved under Admissions in the dashboard, with a counter of new ones. Open an enquiry to see the details and set its status: New, Contacted, Visit booked, Place offered, Cancelled.
- The courses in the form come from your Courses, so they stay up to date.
- Settings → Learnhaven Core → Admission enquiries: turn email alerts on or off, choose the address (empty = the site admin email), and edit the thank-you message and the privacy note under the form.
- Emails are sent by WordPress. If they do not arrive, install an SMTP plugin such as WP Mail SMTP; enquiries are saved in the dashboard either way.
The form is an enquiry, not a booking calendar: your admissions team confirms each visit by phone or email. The form collects details about children, so check the privacy rules that apply to your school before you go live.
Prefer a form plugin or an online application system? Put its shortcode in a Text Editor widget instead. Everything else keeps working.
Office hours
Settings → Learnhaven Core → Office hours: set an opening and a closing time for each day. Leave both empty on days you are closed, and add an optional note (for example "Closed in school holidays").
- The Office hours widget (Elementor) or
[learnhaven_hours]shortcode shows the hours beside your address and phone number. The Learnhaven: Office hours widget shows them in the sidebar or footer. - Today's row is highlighted, and a badge says Open now (with the closing time) or Closed now. The badge uses the time zone in Settings → General, and it is worked out in the visitor's browser, so it stays right even when your pages are cached.
- The week starts on the day set in Settings → General → Week Starts On; times use the time format set there.
Fee estimator
Settings → Learnhaven Core → Fee estimator: list your programmes, one per line as
Programme|fee per term|terms a year, for example Middle school|4200|3. Set the currency symbol,
the sibling discount (taken off the fee of the second child and each child after that) and the note under the result.
The Fee estimator widget (or [learnhaven_calculator]) lets a family pick a programme and
the number of children. It shows the yearly fee and the fee per term ("About $23,940 a year, or $7,980 a term"),
worked out in the browser: nothing is sent or stored. Turn on List the programmes in the widget to show every
programme and its yearly fee for one child beside the estimator.
Page options
Each page has a Page options box in the editor sidebar:
- Accent colour for this page: overrides the Customizer accent on this page only. The demo uses it to give each demo home page its own colour.
- Colour scheme: light or dark for this page only (the Music & arts demo is dark).
- Header layout: classic, centered or contact, for this page only.
Leave them empty to follow the Customizer.
Page templates
| Template | Use |
|---|---|
| Default | Page title band, content and no sidebar. |
| Full width, no title | For pages built with Elementor: the content fills the screen and you add your own hero. All demo pages use it. |
| Full width with title band | The title band, then full-width content. |
Customizer settings
Appearance → Customize. Colours are in the Colors section; everything else is in the Learnhaven options panel. Changes show in the preview before you publish them.
| Setting | Type | Default |
|---|---|---|
| Colors | ||
| Accent colour (buttons, links, icons) | color | #be3a2a |
| Ink colour (text, header, footer) | color | #14342b |
| Paper colour (page background) | color | #fbf6ec |
| Style and fonts | ||
| Colour scheme | select | Light |
| Show a light/dark switch in the header | checkbox | On |
| Heading font | select | Lexend |
| Body font | select | Nunito Sans |
| Body text size (px) | number | 17 |
| Corner rounding (px) | number | 18 |
| Header and top bar | ||
| Header layout | select | Classic: logo left, menu right |
| Keep the header visible while scrolling | checkbox | On |
| Show the search button | checkbox | On |
| Header button text | text | empty |
| Header button link | url | empty |
| Show the top bar | checkbox | On |
| Top bar text (for example your office hours) | text | empty |
| Phone number | text | empty |
| Label next to the phone (for example "Free first call") | text | empty |
| Footer | ||
| Widget columns | select | 4 |
| Footer text (links allowed). Leave empty for the site name and year. | textarea | empty |
| Show a back-to-top button | checkbox | On |
| Blog | ||
| Post list layout | select | Grid of cards |
| Sidebar | select | Right |
| Show the author on posts | checkbox | On |
| Show the date on posts | checkbox | On |
| Show related posts under each post | checkbox | On |
| Mobile call bar | ||
| Show a call / book bar at the bottom of phone screens | checkbox | On |
| Second button text (the first button calls your phone number) | text | empty |
| Second button link | url | empty |
The site title, tagline, logo, site icon, background and homepage settings are WordPress's own, in Site Identity, Background image and Homepage Settings.
Widgets
Appearance → Widgets. Areas: Blog sidebar and Footer column 1 to Footer column 4 (set the number of footer columns in the Customizer). The plugin adds three widgets, named Learnhaven: … in the widget list:
- Contact details — phone, email, address, each with a link.
- Office hours — your hours from Settings → Learnhaven Core, with an "Open now" badge.
- Courses list — links to your courses, optionally from one department.
Building pages with Elementor
All demo pages are built with the free Elementor plugin and the theme's widgets.
- Create a page, set its Template to Full width, no title, and click Edit with Elementor.
- Search for the widget or open the Learnhaven group in the left panel and drag a widget onto the page.
- Edit its text and options in the left panel. Every widget has a Background option (light, paper, dark or accent colour) so sections alternate like the demo.
The widgets fill themselves from your content: Courses, Teachers, Events, Reviews
and Latest posts show the items you add in the dashboard. List fields (prices, steps,
questions…) take one item per line, with the parts separated by |, as the help text under each field shows.
Elementor's own Google Fonts loading is switched off by the demo import, so the site keeps using the theme's self-hosted fonts.
Without Elementor: shortcodes
Every widget is also a shortcode, so you can build the same sections in the block editor: add a Shortcode block and type, for example:
[learnhaven_courses count="6" columns="3"] [learnhaven_events count="3" upcoming="yes"] [learnhaven_admission title="Book a school visit"]
Options are the same as in Elementor. In list options, separate items with || and parts with
|. Images take an attachment ID (Media → Library → the number in the address) or a full URL.
Hero — [learnhaven_hero]
| Option | What it does |
|---|---|
layout | Layout Choices: split, cover |
primary_label | Button text |
primary_url | Button link |
show_phone | Show the phone number (from the Customizer) |
secondary_label | Second button text (when the phone is hidden) |
secondary_url | Second button link |
badges | Trust points, one per line |
image | Photo |
rating | Rating (for example 4.9/5) |
rating_text | Rating note (for example "from 180 parent reviews") |
card_title | Floating card title |
card_text | Floating card text |
Also: eyebrow, title, text.
Courses — [learnhaven_courses]
| Option | What it does |
|---|---|
count | How many |
department | Only this department (slug, optional) |
style | Style Choices: cards, icons |
show_price | Show prices |
more_label | Button under the grid |
more_url | Button link |
Also: eyebrow, title, text, columns, tone.
Reviews — [learnhaven_reviews]
| Option | What it does |
|---|---|
summary | Summary line (for example "4.9 average from 180 reviews") |
count | How many |
Also: eyebrow, title, text, columns, tone.
Teachers — [learnhaven_teachers]
| Option | What it does |
|---|---|
count | How many |
department | Only this department (slug, optional) |
Also: eyebrow, title, text, columns, tone.
Numbers — [learnhaven_stats]
| Option | What it does |
|---|---|
items | Numbers as Value|Label, one per line |
Also: tone.
Why choose us — [learnhaven_features]
| Option | What it does |
|---|---|
items | Features as icon|Title|Text, one per line. Icons: book, cap, pencil, flask, atom, palette, music, globe, calculator, puzzle, apple, trophy, laptop, speech, lightbulb, ball, child, compass, shield, clock, tag, star, badge, check, users, phone, calendar, sparkle, leaf, heart. |
image | Photo (optional) |
Also: eyebrow, title, text, columns, tone.
How it works — [learnhaven_steps]
| Option | What it does |
|---|---|
items | Steps as Title|Text, one per line |
Also: eyebrow, title, text, tone.
Prices — [learnhaven_pricing]
| Option | What it does |
|---|---|
items | One price per line: Name|Price|Note|Feature; Feature; Feature|yes (to highlight)|Button text|Button link |
note | Small print under the prices |
Also: eyebrow, title, text, tone.
Questions — [learnhaven_faq]
| Option | What it does |
|---|---|
items | Questions as Question|Answer, one per line |
Also: eyebrow, title, text, tone.
Call to action — [learnhaven_cta]
| Option | What it does |
|---|---|
button_label | Button text |
button_url | Button link |
show_phone | Show the phone number |
Also: title, text, tone.
Trust strip — [learnhaven_trust]
| Option | What it does |
|---|---|
items | Badges as icon|Text, one per line |
Also: tone.
Fee estimator — [learnhaven_calculator]
| Option | What it does |
|---|---|
button | Button text |
show_list | List the programmes and yearly fees (from Settings → Learnhaven Core) |
Also: eyebrow, title, text, tone.
Events — [learnhaven_events]
| Option | What it does |
|---|---|
count | How many |
evtype | Only this event type (slug, optional) |
upcoming | Only upcoming events |
more_label | Button under the grid |
more_url | Button link |
Also: eyebrow, title, text, columns, tone.
Latest posts — [learnhaven_posts]
| Option | What it does |
|---|---|
count | How many |
category | Only this category (slug, optional) |
Also: eyebrow, title, text, tone.
Call-back banner — [learnhaven_emergency]
| Option | What it does |
|---|---|
phone | Phone (empty = the Customizer phone) |
Also: title, text, tone.
Text and photo — [learnhaven_about]
| Option | What it does |
|---|---|
image | Photo |
badge_value | Badge number (for example 42) |
badge_label | Badge text |
points | Points, one per line |
button_label | Button text |
button_url | Button link |
reverse | Photo on the right |
Also: eyebrow, title, text, tone.
Admission form — [learnhaven_admission]
| Option | What it does |
|---|---|
layout | Layout Choices: split, stacked |
points | Points beside the form, one per line |
button | Button text |
show_phone | Show the phone number |
Also: eyebrow, title, text, tone.
Office hours — [learnhaven_hours]
| Option | What it does |
|---|---|
address | Address |
map_url | Directions link (for example a map link) |
show_phone | Show the phone number |
Also: eyebrow, title, text, tone.
Shortcodes: [learnhaven_hero], [learnhaven_courses], [learnhaven_reviews], [learnhaven_teachers], [learnhaven_stats], [learnhaven_features], [learnhaven_steps], [learnhaven_pricing], [learnhaven_faq], [learnhaven_cta], [learnhaven_trust], [learnhaven_calculator], [learnhaven_events], [learnhaven_posts], [learnhaven_emergency], [learnhaven_about], [learnhaven_admission], [learnhaven_hours].
Block editor and patterns
Posts and simple pages use the WordPress block editor. Every core block is styled to match the theme, and the editor shows the theme's fonts and colours. Click + → Patterns → Learnhaven for ready-made sections: hero with call button, three services, call to action, questions and answers, three reviews, price table and contact details. The theme also adds block styles: Card (Group), Check marks (List), Eyebrow (Paragraph) and Framed (Image).
Blog
Settings → Reading → Posts page sets the page that lists your posts (the demo uses "Blog"). Choose a grid or list layout and the sidebar position in Customize → Learnhaven options → Blog. Posts show the author, date, category, share links (turn them off in Settings → Learnhaven Core) and related posts.
Light and dark mode
Customize → Learnhaven options → Style and fonts → Colour scheme: Light, Dark or Follow the visitor's device. With Show a light/dark switch on, visitors can switch with the moon button in the header; their choice is remembered on that device. A single page can be forced to light or dark in its Page options.
Child theme
If you want to change the theme's code, install learnhaven-child.zip and activate Learnhaven Child.
Put your CSS in the child theme's style.css and your PHP in its functions.php; copy a
template file from learnhaven into the child theme to override it. Theme updates replace the parent theme
only, so your changes are kept.
Small style changes do not need a child theme: use Customize → Additional CSS.
Translation and right-to-left
Every text in the theme and the plugin can be translated. The templates are
learnhaven/languages/learnhaven.pot and learnhaven-core/languages/learnhaven-core.pot.
- Easiest: install Loco Translate → Loco Translate → Themes → Learnhaven → New language, and translate in your browser. Do the same under Plugins for Learnhaven Core.
- Or use Poedit: open the .pot file, translate, and save the files as
learnhaven-fr_FR.po/.moinwp-content/languages/themes/.
Right-to-left languages (Arabic, Hebrew, Persian…) are supported: when WordPress runs in such a language, the layout mirrors automatically.
Updating
When a new version is released, download it from your ThemeForest Downloads page. Then either:
- Appearance → Themes → Add New Theme → Upload Theme → choose the new
learnhaven.zip→ Replace current with uploaded; or - replace the
wp-content/themes/learnhavenfolder by FTP.
When the theme comes with a newer Learnhaven Core, the dashboard notice offers to update the plugin. Your content, menus, widgets and Customizer settings are kept. Changes you made to the parent theme's files are lost: keep them in the child theme.
Questions
"The package could not be installed. The theme is missing the style.css stylesheet."
You uploaded the whole download. Unzip it first and upload learnhaven.zip only.
The import stopped or shows an error.
Your host stopped the import early. Ask them to raise max_execution_time to 300 and memory_limit to 256M, then run the import again: items already imported are skipped.
The pages look plain after the import.
Activate Elementor and the theme's plugin, then reload. Without Elementor, the pages show the same sections through shortcodes.
Admission enquiry emails do not arrive.
Enquiries are always saved under Admissions. For email, check the address in Settings → Learnhaven Core and install an SMTP plugin such as WP Mail SMTP; many hosts block WordPress's default mail.
Where are the demo photos?
They are licensed for the live demo only, so the import uses placeholders. Add your own photos in Media → Library and set them as featured images.
How do I change the font?
Customize → Learnhaven options → Style and fonts → heading and body font. All fonts are included in the theme; no Google Fonts requests.
How do I remove the top bar or the phone bar on mobile?
Customize → Learnhaven options → Header and top bar → Show the top bar, and Mobile call bar.
Can I use the theme on more than one site?
A Regular licence covers one site (one end product). Buy one licence per site.
Support
Support is included with your purchase and covers questions about the theme's features and fixing bugs. It does not cover custom changes or problems caused by other plugins.
Email support@codememory.com with your purchase code and your site address. See the changelog for what changed in each version and third-party materials for credits.