Child Theme for Portfolio file

Hi,

I did some changes in the file content-portfolio.php but don't works in the child theme in this path /wp-content/themes/betheme/child/includes/content-portfolio.php. Do you know can I do it for keep the original theme files??

Thanks in advance

Comments

  • Hi,

    you can not keep original files in child theme of course. Child theme works only with 2 files: style.css and functions.php. More details about child theme you can read on https://codex.wordpress.org/Child_Themes

    Thanks!
  • edited August 2015
    And, can I add some code from the content-portfolio.php to the functions.php?
  • Yes, you can use them in functions.php file.
  • Ok thanks. If I changed this code I can add to funtions.php?

    $output .= '<div class="title_wrapper">';
                                            $output .= '<h5 class="entry-title" itemprop="headline">' . get_the_title() .'</a><br />
                                            <span class="linkport"><a target="_blank" href="'. $ext_link .'">Ver web</a></span></h5>';                               
                                            $output .= '<div class="button-love">'. mfn_love() .'</div>';
                                        $output .= '</div>';


  • Please notice that we do not offer any code customizations. So if you want to modify theme files, you must do this on your own.

    Thanks for understanding!
  • Ok, thanks for your solution. Others themes allow work with all theme files like child theme. I don't understand like this theme don't allow it.
  • Really? Which one? Because sounds like the theme you refer to were not made in accordance to WP API. We have no idea what themes you mean but for sure they are not made properly because child themes works only with 2 files only what you saw on page we sent you above.
  • Thanks for your fast reply. The theme example is 123garden. I don't know if it break the WP API but I know that the customers can do customizations without touch the father theme.
  • If this is true, we'll have a look on it when we have a little bit more time because now we work on some very important features.

    Thanks for understanding!
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.