change of text in Simple Blog: how?

Ask for help or provide support to other members.
Post Reply
User avatar
jojootjenl
Posts: 1
Joined: Mon Sep 22, 2025 6:04 pm

change of text in Simple Blog: how?

Post by jojootjenl »

I started using WonderCMS and I am liking it.
But because I am Dutch (and Frisian), I would like to change some texts, if possible.

I use the theme "Default" and am using version 3.5.0.

In Simple Blog is English text, which I would like translated.
- The month of the post is not in caps in Dutch, so September is september.
- the months in Dutch would be even better
- "Read More" needs translating
- "back to all blog posts" needs translating

Visitors don't see any more text (correct me if I'm wrong) so it would be very helpfull if those texts could be altered.
Maybe in a php-file, or maybe in a translation file?

My site is https://minibiebried.jojootje.nl/
-= Jojootje =-
User avatar
nox
Posts: 84
Joined: Sat May 23, 2020 9:02 pm

Re: change of text in Simple Blog: how?

Post by nox »

Hi jojootjenl,

I absolutely love your mini outdoor library, logo and colors you used.

Before you begin, create a copy of the files:
plugins/simple-blog/class.simpleBlog.php
themes/default/css/style.css

so if something goes wrong, you can replace them back.

To change Simple blog text, browse your website directory: plugins/simple-blog/class.simpleBlog.php
Open class.simpleBlog.php with text editor (Notepad, Notepad++, VSC). But first:

----

DATE FORMAT
Here are few options and you can pick which one suits you:

1. 01 january 2025
English date and set all letters to lowercase. For this one, you need to add some styling to the meta tag (a name for date field). Go to your website/themes/default/css/style.css and open with text editor. Then at the end of the file paste:

Code: Select all

.post.card .meta, .post .meta {
	text-transform: lowercase;
}
This will change the style from January to january.

2. 01 jan. 2025
English date and abbreviation, first three letters only. For this go through step 1 first to set all letters to lowercase.
Then under class.simpleBlog.php look near the beginning of the file for: private $dateFormat = 'd F Y'; and change 'd F Y' to 'd M Y'. This will show months first three letters although not in Dutch but English.

3. 01-01-2025 or 01/01/2025
Numeric representation of the month, change private $dateFormat = 'd F Y'; to 'd-m-Y' or 'd/m/Y'
Not sure about escaping / for now, I'll get to this later. For now, it is safer to go with -

----

READ MORE text

Open class.simpleBlog.php with text editor and search (Ctrl+F) for: Read more
If you are using editor that shows lines on the left side, it is somewhere around line 197 and looks like this:

Code: Select all

<a href="{$this->Wcms->url($this->slug . '/' . $slug)}" class="text-right">&#8618; Read more</a>
Change "Read more" with your text. &#8618; is an arrow, feel free to keep it or delete.

----

BACK TO ALL BLOGPOSTS text

In the same file class.simpleBlog.php search for: Back to all blog posts
It is near the end of the file, line 238 and looks like this:

Code: Select all

<a href="../$this->slug" class="btn btn-sm btn-light">
<span class="glyphicon glyphicon-chevron-left small"></span> Back to all blog posts</a>
Replace "Back to all blog posts" with your text.

----

LOGO size

This is optional, but if you want to fit the logo so it doesn't go over the text below, add to your theme css file at the end (website/themes/default/css/style.css)

Code: Select all

/* Controls logo image height */
.navbar-brand {
    height: 168px;
    padding: 0;
}
    
/* Logo setup */
.logo {
    max-height: 100%;
    margin: 0;
}
Feel free to change first height from 120px-168px.
Post Reply