Hi there,
I tried to modify “functions.php” to hide some categories at widgets area.
An error has occured. I can’t manage to enter into “functions.php” to correct it.
Everything is blocked now.
the error message is:
Parse error: syntax error, unexpected ‘<‘ in /home/turistai/public_html/wp-content/themes/enfold-child/functions.php on line 7
What can I do?
Thanks
Hi turistai!
Please access via FTP and go to wp-content/themes/enfold folder and undo the changes you have made on functions.php file
Best regards,
Yigit
Hi turistai!
Thank you for using our theme.
Unzip the theme files and upload the original functions.php via FTP – = overwrite the file on the server.
Cheers!
Günter
Ok I will try!
Thanks a lot guys!
Hi there,
it worked well! Thanks!
But how can I solve my problem?
I would like to hide some categories on the widget “category” displayed everywhere.
Is there some kind of plugin or code change?
Thank you again
Hi!
This widget is a standard WP widget:
wp-includes\default-widgets.php
Have a look at line 565ff.
There you find filter hooks to modify the query for categories:
wp_dropdown_categories
wp_list_categories
Hope, this will help you.
Cheers!
Günter
Excuse my stupidness, but I have the same problem and don’t understand how to update/overwrite via ftp. Any help?
Hi!
@solusse You can refer to this post – http://kriesi.at/documentation/enfold/updating-your-theme-files/ and update only enfold/functions.php file instead of all theme files (that would be fine as well). If you would like us to look into it, please start a new thread and attach WP admin logins and FTP logins in private content field. If you post them here, they will be visible to creator of this thread as well.
Best regards,
Yigit