- This topic has 3 replies, 1 voice, and was last updated 5 years, 1 month ago by
bubdev.
-
AuthorPosts
-
-
December 27, 2016 at 3:25 pm #7696
bubdevMemberHi,
I renamed some files in the piklist ‘meta-boxes’-folder and ran into the following issues:
I had a file called ‘bub_title-basicdata.php’. I renamed it to ‘cpt-title-basicdata.php’. Well, that didn’t work out as expected: I had just created duplicates of my meta boxes. So I recreated the old file, then first deleted the code for the boxes inside it, leaving the comment block, saved it and then deleted the file.
Okay, the fields were gone, but of course the empty boxes container was still there. So I again recreated the file and tried to save it with only the opening ‘<php’ inside it. But nothing changed.
After some more playing around, I’m now left with four empty containers (see screenshot). Two with their original German title (‘Standardfelder’) and two mysteriously titled after the original file name with ‘theme_’ and ‘theme_theme_’ prepended, so one of them is called: ‘theme_theme_bub_title_basicdata’.
Im wondering how I can get rid of them and what the required process for deleting/renaming field files is.
Thanks!
StefanAttachments:
You must be logged in to view attached files. -
December 28, 2016 at 12:57 am #7699
-
December 28, 2016 at 3:43 am #7701
bubdevMemberNow I also noticed, that the empty meta box containers are appearing on all post types, not only the ones they originally had been set for.
-
December 28, 2016 at 4:45 am #7702
bubdevMemberSorry for talking to myself, but I found out how to solve this.
1.) Renamed the piklist folder in my theme and created a fresh one.
2.) Reloaded the site in the browser.
3.) Deleted the empty piklist folder and changed the name of the original one back to ‘piklist’.
4.) Reloaded the site in the brwoser. Now the empty containers are gone.Is there a way to avoid this in the future?
Best
Stefan
-
-
AuthorPosts
- You must be logged in to reply to this topic.