Changing .php template files in royal-child theme

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

  • Avatar: brunosilva
    brunosilva
    Participant
    August 1, 2015 at 22:08

    Hi

    I want to change some things in the .php files of the template.

    I already try to copy the php files to royal-child folder and change them but it dind’t work.

    Is there any way to change template files in roayl-child folder so I don’t lose the changes in template update?

    He some files that I want to change:
    comments.php
    content.php
    content-grid.php
    single.php

    and so on.

    Thanks

    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    August 3, 2015 at 08:47

    Hello,

    Please provide us with wp-admin panel and FTP credentials in Private Content. Please specify what changes you made in those files.

    Regards,
    Eva Kemp.

    Avatar: brunosilva
    brunosilva
    Participant
    August 3, 2015 at 21:50

    Hi

    you have the credentials #post-78371

    here some changes:

    royal/comments.php

    <p><?php _e(‘Comments are closed’, ETHEME_DOMAIN) ?></p>
    to
    <!– <p><?php _e(‘Comments are closed’, ETHEME_DOMAIN) ?></p> –>

    royal/content-grid.php,
    royal/content.php,
    royal/single.php,
    rayal/framework/theme-functions.php
    <?php _e(‘by’, ETHEME_DOMAIN);?> <?php the_author_posts_link(); ?>
    to
    <!–<?php _e(‘by’, ETHEME_DOMAIN);?> <?php the_author_posts_link(); ?>–>

    royal/framework/widgets.php
    <?php _e(‘by’, ETHEME_DOMAIN) ?> <?php the_author(); ?>
    to
    <!–<?php _e(‘by’, ETHEME_DOMAIN) ?> <?php the_author(); ?>–>

    I was reading about child themes in wordpress. we can only change the style.css and add some functions? they are not really “child themes” where we can change anything in any file?

    Thanks

    Bruno Silva

    Avatar: Eva
    Eva Kemp
    Support staff
    August 4, 2015 at 08:27

    Hello,

    I’ve added comments.php file to royal-child folder and edited it. “Comments are closed” text isn’t shown. Please check.
    Also I’ve copied the files to child theme directory and commented the code you mentioned. If you want to make changes in “framework” folder you need copy the function code from the needed file to functions.php file of the child theme, this is what I’ve done.

    Please check your site now.

    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

Helpful Topics

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