Hi guys, :-)
Just FYI, I got this answer from the theme dev:
"David,
You don't need the include statement. If you create your function in
wp-content/themes/suffusion-child/functions.php it will get
automatically included.
Secondly, using the same function name wouldn't work, because it would
req
On Thu, 2010-11-04 at 00:00 +0800, David Nelson wrote:
> Hi Thijs, :-)
>
> On Wed, Nov 3, 2010 at 20:38, Thijs Lensselink wrote:
> > I re-read your original post. And noticed you include the function inside
> > your child action.php
> > Is there a special reason for that? You want to overwrite th
Hi Thijs, :-)
On Wed, Nov 3, 2010 at 20:38, Thijs Lensselink wrote:
> I re-read your original post. And noticed you include the function inside
> your child action.php
> Is there a special reason for that? You want to overwrite the original
> function in a child theme.
> probably to get different
On Wed, 3 Nov 2010 19:53:52 +0800, David Nelson
wrote:
Hi, :-)
On Wed, Nov 3, 2010 at 19:29, Peter Lind
wrote:
That's not going to happen. My point was you could check in the
original
file if the function is defined and if not then define it.
OK, thanks, Thijs and Peter, it looks like I'm
Hi, :-)
On Wed, Nov 3, 2010 at 19:29, Peter Lind wrote:
> That's not going to happen. My point was you could check in the original
> file if the function is defined and if not then define it.
OK, thanks, Thijs and Peter, it looks like I'm trying to do something
that is not currently possible in
That's not going to happen. My point was you could check in the original
file if the function is defined and if not then define it.
On Nov 3, 2010 11:55 AM, "David Nelson" wrote:
> Hi Peter, :-)
>
> On Wed, Nov 3, 2010 at 18:44, Peter Lind wrote:
>> You can check with function_exists to see if a
Hi Peter, :-)
On Wed, Nov 3, 2010 at 18:44, Peter Lind wrote:
> You can check with function_exists to see if a function is already defined.
> If not, create it.
The function is definitely already defined, I just need to replace it
without touching the file in which it's defined...
David Nelson
You can check with function_exists to see if a function is already defined.
If not, create it.
Regards
Peter
On Nov 3, 2010 11:40 AM, "David Nelson" wrote:
> Hi Thijs, :-)
>
> On Wed, Nov 3, 2010 at 18:18, Thijs Lensselink wrote:
>> As far as I know it is not possible to overwrite functions in P
Hi Thijs, :-)
On Wed, Nov 3, 2010 at 18:18, Thijs Lensselink wrote:
> As far as I know it is not possible to overwrite functions in PHP (unless
> you use runkit, apd). Inside classes this is possible. But that's not the
> case here. Why do the functions have to be equally named?
If the functions
On Wed, 3 Nov 2010 17:59:06 +0800, David Nelson
wrote:
Hi, :-)
I'm making a child theme for WordPress. I need to rewrite one
function
defined in "../sometheme/functions/actions.php" and put that
rewritten
function in
"wp-content/themes/sometheme-child/functions/actions.php".
But I want to
Hi, :-)
I'm making a child theme for WordPress. I need to rewrite one function
defined in "../sometheme/functions/actions.php" and put that rewritten
function in "wp-content/themes/sometheme-child/functions/actions.php".
But I want to preserve "../sometheme/functions/actions.php" unchanged
in any
11 matches
Mail list logo