template modificaiton - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: template modificaiton (/showthread.php?tid=5227) |
template modificaiton - saint - 2013-09-29 I want to use two themes in my website. Here are the steps I have taken: I copied the template.php file from the second theme folder and placed it in the main theme folder. I renamed the second theme template php file. On the webpage I want to use the second theme on - I used the page option and changed the page template to the second theme template. I have modifed the PHP lines include ( " header.inc.php ' ) to this include ( " /Innovation/header.inc.php ' ) on the second theme template php file. When I access the page using the second theme - I get his error message: Fatal error: Call to undefined function Innovation_Settings() in /home/scenicra/public_html/scenicradio.com/theme/holford/index.template.php on line 13 What am I doing wrong ? RE: template modificaiton - eatons - 2013-09-29 Quote:Fatal error: Call to undefined function Innovation_Settings() in /home/scenicra/public_html/scenicradio.com/theme/holford/index.template.php on line 13 Change ' /Innovation/header.inc.php ' . Drop '/Innovation/'. Copy and rename the 'header.inc.php' file to match your new template. Hope that helps? RE: template modificaiton - saint - 2013-09-29 My primary theme is Holford /theme/holford/ The additional theme I would like to use is Innovation /theme/Innovation/ In order for the Secondary Innovation theme template to access files in the Innovation folder - I would assume that I must include the /Innovation/ within the PHP include - since the Holford theme is the primary one and I include all template files in the Holford theme folder. RE: template modificaiton - eatons - 2013-09-29 GetSimple expects to find all of its template files in one folder. Copy and change any files from another theme that you wish to use and rename them for use inside your main theme. Also, if there are any functions that you wish to use from another theme, copy those functions into your functions.php file. RE: template modificaiton - saint - 2013-09-29 You should not have to " combine " anything. PHP include provides for parsing relative URL object location. Keeping themes seperate would be more logical and save much head scratching. RE: template modificaiton - Luigi - 2013-09-29 You can keep themes files separate but it's better if you have all the files within the same theme folder. What you can do is create a subfolfer with the files of the second theme, so they won't mix. For your second be able to work, you will need to do some changes that will break Innovation theme for future use as separate theme, unless you repair everything again before you use it. |