Hi Ulmavi
For the first question please try:
#nav-header.nav-container {
-webkit-box-shadow: none;
box-shadow: none;
}
For the second question – don’t edit the theme files directly. You should look at creating a child_theme
Thanks! It worked. 🙂
When it comes to the php-files I copied them and put them in my child theme folder. But they don’t work. I have changed other php-files that I put in the child theme folder and they work as they should, but this one don’t.
Any ideas?
editing [child_theme]/inc/post-nav.php works for me. Is that the one you edited?
Yes. I took the inc/post-nav.php-file and copied it in to my child theme folder. Changed the text I wanted to change into Swedish. That’s how you change .php-files in your CHild theme right? All of the text is copied and not just the changes. Is that the problem? The same text is in two .php-files?
Sorry for all my questions but I work with the “learning by doing” technique. 🙂
Yes you copy the entire file and edit / remove or add code accordingly. Did you maintain the directory structure?
Yes. I just changed the text from english to swedish. Very strange. 🙁 I’ll look it over one more time.
Hej Ulmavi! Snyggt jobbat med sidan 🙂 Ser gott ut!
The right way to change language of the theme is to do like this:
1. Create a child theme. In functions.php of the child theme, copy over this whole section from the parent theme’s functions.php
function alx_load() {
- lots of code here -
}
Over to the child theme. Then, you want to load the language file from the child theme instead of the parent theme, so you change this line in the function you just pasted:
load_theme_textdomain( 'hueman', get_template_directory().'/languages' );
To this:
load_theme_textdomain( 'hueman', get_stylesheet_directory().'/languages' );
Now the the language is loaded from the child theme’s /languages/ folder instead, where you can add your sv_SE.po file.
To translate the theme, use the en_US.po file as base from the parent theme. It exists in the /languages/ folder.
Here is a guide how to translate a theme. Here you download the translation program, PoEdit.