I was trying to improve the website speed by adding a particular code to the function.php.
The code I needed to added was meant to be added just before the “?>” tag at the end of the “function.php” file of the theme.
Yet to my surprise I realised that there was no general closing “?>” in the file. Is this a programming choice.
Would I break anything by simply adding the needed code at the end of the “function.php” as stated earlier.
Your response is appreciated.
Hello Damilarelana !
Anywhere in the functions.php must start with an opening php tag and not closing “?>” tag looks like:
If you want to add the code to the funtionc.php, please put in another opening php tag… like:
<?php<br />existing code<br /><?php<br />new code you pasted<br />?>
Hope this helps!
Please login or Register to submit your answer