@starapple thank you for the quick reply… i have tried to insert the code in my plugin theme function.php…. (wpforo is my plugin)….getting an error
see the error in the link here
Click here to view
Copy and paste the error message here. The code is to be placed in your theme’s functions.php. I don’t know what wpforo is. Help here is related to wpdiscuz
@starapple this is the errror
Your PHP code changes were rolled back due to an error on line 154 of file wp-content/themes/colormag/functions.php. Please fix and try saving again.
syntax error, unexpected ‘;’, expecting ‘[‘
this was the exact li e @154
$html = "";
I can’t venture to say what could be causing that error. What I shared is exactly what I’ve been using without error since my first post in this chain. Check that the previous block of code before the point that you pasted this is correctly closed.
-
This reply was modified 5 years ago by
starapple.