Mantra Child Theme and modified theme-functions.php

  • Author
    Posts
  • #6127
    Leon

    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.

    #6229
    Zed
    Cryout Creations mastermind

    You 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.
    #6261
    Jason Martin

    I’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.

    #6267
    Leon

    Thank you, Zed.

    I already found a solution on the WordPress forum:

    http://wordpress.org/support/topic/mantra-child-theme-and-modified-theme-functionsphp?replies=6#post-4188854

    Leon (lg77)

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Mantra Child Theme and modified theme-functions.php’ is closed to new replies.