-
AuthorPosts
-
May 10th, 2013 at 21:25 #6127Leon
How can I use the modified theme-functions.php in the mantra child theme? I placed functions.php:
require_once(dirname(__FILE__).”/theme-functions.php”); //Theme misc functions
and modified theme-functions.php into the child’s root folder to no avail.
But this new theme-functions.php works correctly in the mantra parent theme.
May be it requires placing some other files in the child directory or it is not possible to make it work at all, I do not know.
Any thoughts?
Thank you in advance.
May 12th, 2013 at 23:08 #6229ZedCryout Creations mastermindYou can’t replace files present in the includes folder by placing identically-named files in the child theme as well.
You have to override functions one-by-one in the child theme; some can be overriden by simply using the same function name in the child theme, other more fundamental functions need to be unhooked from the parent Mantra and replaced with their child version (otherwise things break).
You need to tell me which functions you are trying to replace for me to give you more detailed instructions…
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.May 13th, 2013 at 21:30 #6261Jason MartinI’m trying to remove the WordPress link from the footer as I have heard the link can attract hackers. I have had a few problems with them. I would also be able to add my own link such as powered by Mantra & innerHouse Designs. I tried to deactivate the function and then add a modified one in the child but it broke my site. I think it was resending the header or something.
May 14th, 2013 at 01:27 #6267LeonThank you, Zed.
I already found a solution on the WordPress forum:
Leon (lg77)
-
AuthorPosts
The topic ‘Mantra Child Theme and modified theme-functions.php’ is closed to new replies.