Support Forum
Per that child theme article I linked you to, the parent theme spFunctions.php file is included before the child theme spFunctions.php file... so just any changes or additions that you want...
Visit Cruise Talk Central and Mr Papa's World
Mr Papa said
Per that child theme article I linked you to, the parent theme spFunctions.php file is included before the child theme spFunctions.php file... so just any changes or additions that you want...
I did read the article twice Steve, but english is not my native language and i was not sure if i did understand it correctly. So please be patient with me.
no worries... sorry, wasnt trying to be pointed but it was a different topic so I was trying to point back to the child theme article for others that might find this topic... but then forgot the link to it
Visit Cruise Talk Central and Mr Papa's World
I am unsure about what lines is absolutely needed as a minimum in a function file.
Lets take spHead.php as an example:
I want to change spBreadCrumbs&tree=1 to spBreadCrumbs&tree=0
Would following work as a single spHead.php file in my child theme or is it doable with less code?
<?php # -------------------------------------------------------------------------------------- # # Simple:Press Template # Theme : Default # Template : head # Author : Simple:Press # # The 'head' template can be used for all forum content that is to be # displayed at the top of every forum view page # # -------------------------------------------------------------------------------------- # Start Template # Mandatory call to sp_HeaderBegin() - available to custom code # ---------------------------------------------------------------------- sp_InsertBreak(); sp_HeaderBegin(); # Start the 'breadCrumbs' section # ---------------------------------------------------------------------- sp_SectionStart('tagClass=spPlainSection spLeft', 'breadCrumbs'); sp_BreadCrumbs('tagClass=spLeft spBreadCrumbs&tree=0', __sp('Home')); sp_SectionEnd('', 'breadCrumbs'); sp_InsertBreak(); # Mandatory call to sp_HeaderEnd() - available to custom code # ---------------------------------------------------------------------- sp_HeaderEnd(); ?>
you only need to copy over template files that you want to make changes too... if you need to make any changes, you need to copy over the entire file from the parent theme to the child theme... then make any changes...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)