-
AuthorPosts
-
February 19, 2015 at 4:17 pm #398990
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?
ThanksFebruary 19, 2015 at 4:22 pm #398992Hi 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,
YigitFebruary 19, 2015 at 4:23 pm #398994Hi 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ünterFebruary 19, 2015 at 4:26 pm #398995Ok I will try!
Thanks a lot guys!February 19, 2015 at 4:48 pm #399012Hi 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 againFebruary 19, 2015 at 6:11 pm #399100Hi!
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_categoriesHope, this will help you.
Cheers!
GünterJune 14, 2016 at 1:58 pm #647991Excuse my stupidness, but I have the same problem and don’t understand how to update/overwrite via ftp. Any help?
June 14, 2016 at 2:08 pm #648000Hi!
@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 -
AuthorPosts
- You must be logged in to reply to this topic.
