Child Theme – Custom templates or pages

This topic has 4 replies, 2 voices, and was last updated 9 years, 10 months ago ago by Eva Kemp

  • Avatar: DiegoSSC
    DiegoSSC
    Participant
    February 4, 2015 at 00:44

    Hi There!

    I need your help to customize the theme-functions.php (framework folder) and the top-bar.php via Child Theme. I tryed to put the same folder estructure on the child theme folder (as other child themes do), but it doesn´t work.

    How can i make some changes in this files and keep them on my child theme folder for future updates of the theme?

    Regards!

    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    February 4, 2015 at 09:43

    Hello,

    You need copy the code you want to edit from the files and insert it in functions.php file of the child theme.
    Please try it.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: DiegoSSC
    DiegoSSC
    Participant
    February 4, 2015 at 23:05

    Hi Thanks for your reply.

    Works fine to customize the functions, but how can i customize a template without a function?

    For example, i need to change:
    This:
    <div class=”empty-category-block”>
    <p>“><span><?php _e(‘Return To Shop’, ETHEME_DOMAIN) ?></span></p>
    </div>

    to this:
    <div class=”empty-category-block”>
    <h2>No se han encontrado productos</h2>
    <p>“><span><?php _e(‘Return To Shop’, ETHEME_DOMAIN) ?></span>
    <span>INSCRIBETE</span></p>
    </div>

    In other themes, this is made by cloning the php file in the same folder structure than the parent theme in the child theme folder.

    Is there any way to do the same in this child theme?

    Regards!

    Avatar: Eva
    Eva Kemp
    Support staff
    February 5, 2015 at 09:07

    Hello,

    In this case you need add the code in functions.php file of your child theme.
    It should work.
    Please try it.

    Thank you.
    Regards,
    Eva Kemp.

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.