Blog settings

Permalink Browser Info Environment
Hi!

So I'm working on a website and it has a blog section. The website itself is in Finnish and I can't seem to find a place where I could change the blog's/blocks settings so I could change "Read more" for example to be in Finnish. Is there a way?

1 Attachment

Type: Discussion
Status: Resolved
KeinoOy
View Replies:
VidalThemes replied on at Permalink Reply
VidalThemes
Hi There,

I have to be honest this is an oversight on our part, these are hardcoded into the template, they are inside a translation tag, so they can be added to a PO file, but I totally get that most people don't want the hassle of dealing with such things, I will add this to our roadmap and get a way to edit these in the next update.

If you are ok editing the themes files I will gladly send you a step by step guide on where to change them so you don't have to wait for an update. Please let me know if you would like some instructions.

Best regards

David
KeinoOy replied on at Permalink Reply
KeinoOy
Hi,

thank you for the quick response! I would love to have the instructions.
VidalThemes replied on at Permalink Reply
VidalThemes
No problem. Please follow the instructions below to alter the "Read more" sections:

1/ Connect to your site via FTP, and go to the following location:
packages > modena > blocks > page_list > templates

2/ Inside the templates folder you will see the folders that contain the templates for the blog, they are named exactly after the custom templates used to style your blog, which are:

modena_blog
modena_masonry_blog

3/ Open up whichever folder corresponds to the custom template you are using, and open up the view.php file inside in your text/code editor.

4/ On or around line 105 you should see this piece of code:

<a href="<?php echo h($url) ?>" target="<?php echo h($target) ?>"><?php echo h("Read this article") ?></a>


Where it says "read this article" replace that with your desired text.

The next piece of code you are looking for is on or around line 158 and looks like this:

<a href="<?php echo h($url) ?>" target="<?php echo h($target) ?>" class="<?php echo h($buttonClasses) ?>"><?php echo h("Read more...") ?></a>


Where it says "Read more..." replace this with your desired text.

5/ Once you are happy with your alterations, save the file(s) back to the exact location you found them.

The above process will change the text on both the overlay of the thumbnail and the text under the blog posts.

I hope that helps, I will get an update done giving non-English sites a bit better way to deal with this. Apologies for any inconvenience.

Best regards

David
KeinoOy replied on at Permalink Reply
KeinoOy
Soooo one more question – Where is the updated doc for for details for "Media queries"? Can't find anything about it in the current doc section nor on the demo site.
VidalThemes replied on at Permalink Reply
VidalThemes
Hi There,

It's in the online docs found here:

http://modena-docs.vidalthemes.com/...

The exact section is just under the "Layouts" section:

http://modena-docs.vidalthemes.com/#section-15...

Best regards

David
KeinoOy replied on at Permalink Reply
KeinoOy
I'm sorry but there is nothing about it, we've been going through the page for several times and the layout section ends with "Your block will now populate the whole width of the screen." and after that continues with Blocks section.
KeinoOy replied on at Permalink Reply
KeinoOy
For my co-worker it seems to work, so we'll figure out where the problem is. Might be just a cache glitch.
VidalThemes replied on at Permalink Reply
VidalThemes
Hi There,

I just wanted to let you know there is a new version of Modena out now, in this update it includes 2 new options in the "Blog Settings" page which allow you to add text in place of the "Read more..." at the bottom of the blog posts and also the "Read this article" on the thumbnail overlay.

When you update your site it will overwrite what you have previously hardcoded into the templates, please go to the following location:

Dashboard > Modena Theme Options > Blog Settings

You will see the 2 new options called "Read More Text" and "Read More Text (Overlay)"
enter your new text here and save the settings. these will now be shown in place of the English text that the theme defaulted to.

I hope this helps, any issues please let us know.

Best regards

David

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.2
Version Installed - 8.5.2
Database Version - 20190925072210

# Database Information
Version: 10.1.41-MariaDB-cll-lve
SQL Mode: NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Modena Theme (1.0.1)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
LiteSpeed

# Server API
litespeed

# PHP Version
7.1.32

# PHP Extensions
apcu, bz2, calendar, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, http, i360, iconv, intl, ionCube Loader, json, libxml, litespeed, mbstring, mcrypt, memcached, mysqli, openssl, pcntl, pcre, PDO, pdo_mysql, propro, raphf, readline, Reflection, session, shmop, SimpleXML, SPL, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 90
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 256M
post_max_size - 32M
sql.safe_mode - Off
upload_max_filesize - 32M
ic24.api.max_timeout - 7
memcached.sess_lock_max_wait - not set
memcached.sess_lock_wait_max - 2000
memcached.sess_server_failure_limit - 0
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
raphf.persistent_handle.limit - -1
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
opcache.max_accelerated_files - 10000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.