Is it possible to put a snippet in file (something.php) and call it in functions.php on appropriate place?
I mean, instead of pouring different codes for php in widget, adding fields in user bio, adding image sizes etc in functions.php, won't it be a good idea to put all that in a seperate .php file and then call it in functions.php?
If yes then how?
It's actually less efficient because there are more calls to separate files.
And yes, you can do it with php includes. That's not WordPress specific, it's just php.
If you need technical support for your theme please file a ticket.
The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!