Override content-portfolio.php [including files into Child Theme]
Hi,
I am able to override the below in the theme -
/public_html/wp-content/themes/betheme-child/includes/content-single-portfolio.php
but not -
/public_html/wp-content/themes/betheme-child/includes/content-portfolio.php
Any ideas would be great, thanks.
Comments
we don't know what you do exactly but if you try to upload this file into child theme, it won't work because child theme does not allow to upload own files. More information about this you can read on http://forum.muffingroup.com/betheme/discussion/3128/theme-shortcodes-php-doesn-t-work-in-betheme-child and also you should check wordpress documentation https://codex.wordpress.org/Child_Themes
Thanks!
1. Copy include-portfolio.php to child theme directory /includes
http://pasteboard.co/e6HxIf0z.png
2. Edit child theme functions.php and add below line: http://pasteboard.co/mKPlN5o9w.png
This line is required because of the existence of functions in the include file.
Fatal error: Call to undefined function mfn_opts_get() in wp-content/themes/betheme-child/functions/theme-shortcodes.php on line 5260
Thanks for understanding!