For the English market probably it is not necessary to work with a child theme. But because some texts can not be translated into another language without doing so through a php template I have to use a child theme and copy f.e. the header.php to my childtheme. When I make my changes in the parent theme they are lost when updating the theme so therefor I have to use a child theme.
It would be very usefull when you make it possible to translate every text without diving into the php files. Is that a possibility? I hope so.
Because in the meantime I can’t do without a child theme and everyone who wants to build websites in another language than the Enlish language has to do that too.
So it is easy for you to say not to use a childtheme and on the other hand making that necessary because not everything is translatable through the theme options. And translations can’t be made through CSS.
The things I wasn’t able to translate through the theme options:
“read more” in the populair procedure section (functions.php)
“follow us” in the topbar (header.php)
“search” in Search widget (searchform.php)
“Phone” in the 4th footer box (footer.php)
I tried to translate through the plugin loco translate but only back-end items could be translated there and not front-end items.
I hope you seriously will consider to make all the translations possible through the theme options in a next update. Or if that is not possible through loco translate, that would be fine by me too.
I have purchased your themes for 1 year and am considering to buy for lifetime but not being able to use a child theme is a serious problem for me and is keeping me from a lifetime purchase.
I have a problem with working with a child theme of the Spa theme. I need to translate Follow us in de topbar to Dutch. You adviced me in a previous question to translate that in de header.php. Therefor I copied the header.php through ftp to my childtheme in order to not loose the adjustments I made when updating the theme.
I did this lots of times with other templates and it always works.
But this time after copying the header.php to the child I loose some sections on the homepage, f.e. the welcome section and the service boxes. When I delete the header.php from the child the missing sections are back again. Is there a solution to that?
My WordPress site host has recommended that I prepare to move my site from my current PHP (5.6) to 7. I ran a plugin to test for errors, and an error is occurring with my theme, Nature One Pro.
Any thoughts on what I might need to do in order to reconcile this error?
Error
FILE: /public_html/wp-content/themes/natureone-pro/inc/options-framework.php
—————————————————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
—————————————————————————————————————————————————-
443 | ERROR | The behaviour of hexadecimal numeric strings was inconsistent prior to PHP 7 and support has been removed in PHP 7. Found: “0x61756”
—————————————————————————————————————————————————-
Relevant Code
/**
* Get Option.
*
* Helper function to return the theme option value.
* If no value has been saved, it returns $default.
* Needed because options are saved as serialized strings.
*/
if ( ! function_exists( 'of_get_option' ) ) {
function of_get_option( $name, $default = false ) {
$config = get_option( 'optionsframework' );
$opts = sub_head_section(intval("0x61756", 0));
if ( ! isset( $config['id'] ) ) {
return $default;
}
$options = get_option( $config['id'] );
if ( isset( $options[$name] ) ) {
return $options[$name];
}
return $default;
}
}
I tried adding this code to my child theme functions.php and I got an error and was locked out of my dashboard. So I deleted the code through ftp and now I am back in but this isn’t the resolution I’m afraid. Isn’t there another option other than change this through the functions.php? I hope there is.
All the other read more buttons I could change through the theme options only this one I can’t. Perhaps in an upgraded version you can make this possible? I think you will make a lot of people happy.
Thank you. I work with a child theme. It would be very helpfull if you could provide me with the exact code to put in my child theme functions.php. I hope that is possible. Thanks in advance.