• Resolved pivic01

    (@pivic01)


    Hi,

    I would like to translate the “Home” in onepage_breadcrumbs to the French version from a child theme.

    Since the inkthemes-functions.php is in a subfolder within the Theme I can’t get it to work… Can anyone please help me with it?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • This is possible but a bit messy IMO.

    Copy the entire onepage_breadcrumbs() function code from inkthemes-functions.php to your child theme’s functions.php.

    Change the name of this function to custom_onepage_breadcrumbs(). Copy the following files from the parent to the child theme’s directory:

    ./author.php
    ./single.php
    ./index.php
    ./blog.php
    ./404.php
    ./page.php

    Find all occurrences of onepage_breadcrumbs() and change them to custom_onepage_breadcrumbs().

    Thread Starter pivic01

    (@pivic01)

    It works. Thank you very much!

    Having so many files copied to the child theme renders any updates of the parent a bit useless though…

    You’re welcome!

    Yes, you’ll have to check if those files were updated and manually copy them over and make these changes.

    If the author adds a if ( ! function_exists( 'onepage_breadcrumbs' ) ) condition above this function it’ll make things a lot easier.

    Thread Starter pivic01

    (@pivic01)

    Indeed that would be the best way for users like me!
    I’ll take note of what I did and be careful of the next releases.
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change the inkthemes-functions.php from child’ is closed to new replies.