Hello,
I am wanting to do some special formatting on the very first character of the very first paragraph on the Homepage of my site by including this within a <div>.
My issue is how to split this first character from the remaining characters from the $Content variable.
I have created a couple of functions and added these to my HomePage.php file:
function ContentFirstCharacter() {
return ($Content[0]);
}
function ContentLastCharacters() {
return (substr($Content,1));
}
It appears that the $Content variable is not available and these functions return blanks. I have tried to pass the variable as a parameter with no success either.
Can anyone give me a push in the right direction?
Many thanks,
Gary