Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Joyn › Joyn-Child files in folders not overiding Joyn Parent
New Landing › How can we help? › Themeforest Theme Support › Joyn › Joyn-Child files in folders not overiding Joyn Parent
- This topic has 19 replies, 4 voices, and was last updated 8 years by Rui Guerreiro – SUPPORT.
-
Posted in: Joyn
-
December 9, 2014 at 8:49 am #134485
Hi, certain customisations are being lost during updates, even though the exact same file/folder structure has been loaded into the child theme. One example is sf-header.
Any ideas or do swift-framework folder customisations not work in child themes? Thks!
December 9, 2014 at 9:18 am #134493Hi
Only root folder files can be overwritten in the child theme, for e.g. functions.php, header.php, footer.php etc. For framework and includes files you can only override them by adding the function to your child theme’s functions.php file
– Kyle
May 9, 2016 at 4:49 pm #266251I’m also having an issue creating a child theme for Joyn.
I have already put the customized single-team.php, sf-portfolio-detail.php, and single-post.php template files in the child theme folder.
Now, could you give an example of the function/s that would be needed to override them in the parent theme?
Thanks!! We’re really loving the theme!
Tim
May 9, 2016 at 5:13 pm #266259Hi,
You need to keep the same directory structure inside the child theme.
What exactly you need to change? If we can help with in our support scope.-Rui
May 9, 2016 at 5:35 pm #266265single-team.php – I have added two buttons (“back to home” and “view all”) to the bottom of team member content and moved the contact info up to the top of the content.
sf-portfolio-detail.php – changed the share button to “email it” and added a “view all” button
single-post.php – added a newsletter signup form, modified the share button to “Share this insight!” and added a custom footer.
—
So if I mock the directory structure exactly and put just these customized php files there it will work? And what is the proper function?
Thanks for you quick response!
TimMay 10, 2016 at 11:04 am #266378It will work directly for the single-team.php and single-post.php because they are in the main directory and are automatically loaded.
Regarding the other change inside sf-portfolio-detail.php it’s better to copy the entire function and paste it in the functions.php of the child theme
You should also copy the function exists if.
https://www.dropbox.com/s/0i9dogx1b3tjzlo/Screenshot%202016-05-10%2011.11.01.png?dl=0Let me know if you sorted it.
-Rui
May 13, 2016 at 11:35 pm #267499I’ve tried a couple different setups and I keep getting errors when trying to load the wp-admin page…
• Tried pasting all the functions we customized from the joyn theme files to the end of the functions.php file of the child theme.
• Tried just pasting the functions from your previous post to the child theme functions.php and added single-team.php and single-post.php in a folder named “layout” that was also in a folder named “swift-framework” – so it had the same file path as original
• also tried adding the customized single-team.php file to the rootCan you help?
All I need to do is override 3 joyn theme files: single-team.php, single-post.php, and sf_portfolio_detail.php
How should I set this up?
—
Here was one of the errors: Warning: Cannot modify header information – headers already sent by (output started at /nfs/c11/h03/mnt/204011/domains/infrared.hnycmbcreative.com/html/wp-content/themes/joyn-child/functions.php:463) in /nfs/c11/h03/mnt/204011/domains/infrared.hnycmbcreative.com/html/wp-includes/pluggable.php on line 1171There were different ones depending on how I arranged the files listed above.
May 17, 2016 at 12:35 pm #268050Can you provide me ftp access to have a look at that error?
Use the private reply.Thanks
-Rui
May 17, 2016 at 3:26 pm #268124This reply has been marked as private.May 18, 2016 at 11:42 am #268298Hi,
Couldn’t connect in the FTP or in the WordPress admin. Can you check it?
It seems that you may have some empty lines at the end of this file
wp-content/themes/joyn-child/functions.php:463Delete them and probably this header output error will go away.
-Rui
May 18, 2016 at 1:57 pm #268379This reply has been marked as private.May 18, 2016 at 8:53 pm #268528Hi,
Manage to login thanks, but just realised that the files aren’t attached to the reply.
Can you share then inside a zip file, if necessary share it in a Dropbox link or something similar.-Rui
May 19, 2016 at 2:30 am #268561This reply has been marked as private.May 23, 2016 at 10:45 am #269316Couldn’t check this on Friday, had some priority development tasks.
Wil check it today.-Rui
May 23, 2016 at 1:03 pm #269398Thanks for the update! Looking forward to hearing how it goes.
-
Posted in: Joyn
You must be logged in and have valid license to reply to this topic.