change text from 'read more'-Button
-
Hi,
I’ve found here three posts about my problem. And one in the forum “WordPress Germany”. I’ve tried all the things they said and some more. But there are no answers to resolve it.
Iam working with WP 4.2.2 (multisite) and minamaze 1.1.9 and child. I want to change the text “read more”.
I know, the code is in ‘/../parent_theme/admin/main/options/02.homepage.php’
There I’ve changed it and it works.But I want to change it with the child. All other modifications in style.css and some pages.php – saved in ‘/../child_theme/…’ – working fine.
My problem is how to tell WP, that I don’t want to use ’02.homepage.php’ from parent but from child. I know that first WP asks the child-infos and then the parent-infos.
1) I’ve copied in my child – ‘/../child_theme/admin/main/options/02.homepage.php’ – and changed the text and nothing happens, shows the parent.
2) Then I added a functions.php in my child:
<?php require_once( get_template_directory() . '/admin/main/options/02.homepage.php' ); ?>
(This is the same code as in functions.php-parent to include ’02.homepage.php’.) No error, but shows the parent.
Changing code to
require_once( get_stylesheet_directory() . '/admin/main/options/02.homepage.php' );
–> Fatal error: Cannot redeclare thinkup_input_sliderhome() (previously declared in …/wp-content/themes/child/admin/main/options/02.homepage.php:14) in …/wp-content/themes/minamaze/admin/main/options/02.homepage.php on line 73I’ve tried many more. It’s to much to write it here. But I’ve got no success.
So what can I do? Iam not well versed in php or programming themes and templates. Just learning by doing.
Perhaps it’s only a problem in the free-version? Somewhere I’ve read that’s the problem of the code in parent. There is no if-exist-routine to make it possible to take the child-version of ’02.homepage.php’.
Has anyone the answer to resolve this Problem?
- The topic ‘change text from 'read more'-Button’ is closed to new replies.