css - Help locating old custom_css in PHP MyAdmin

I started developing a website, and midway through I changed the URL.I was and still am an amateur so unfortunately I&

I started developing a website, and midway through I changed the URL. I was and still am an amateur so unfortunately I've had some issues with the database now that I'm trying to go back and clean everything up. Just for example, let's say I was thehappyshoestore and now I'm thehappyshoe.

In Wordpress, there is a section called "Additional CSS." I loved this tool when I was first starting to learn, but now I'm having some issues locating some rules I wrote a long time ago. I looked through every folder for the location of that stylesheet until I found a post on here that said to look in PHP MyAdmin. I noticed it's taking around 500 ms to load it on GT Metrix Waterfall so I wanted to just put the code in the child theme's stylesheet instead.

When I added Cloudflare to my site, the old URL that is a parked domain for the new URL was down for a bit and I noticed that several CSS rules weren't applying. These were rules that I wrote awhile ago prior to changing URLs, but I see now they are no longer in the additional CSS section nor in the custom_css database table, only the new rules are. I also see that the GUID for this entry still has the old site in its URL.

What I would like to do is take all the old rules plus the new ones and add them to the child theme's stylesheet to improve performance. The problem is that I cannot locate the old rules, and I have no clue where it's pulling them from. They are still in effect because if I try to remove an inline html class, it visibly alters the appearance so the rules are still being applied, I just don't know where to look to find them. Any recommendations for locating those old rules would be greatly appreciated.

I started developing a website, and midway through I changed the URL. I was and still am an amateur so unfortunately I've had some issues with the database now that I'm trying to go back and clean everything up. Just for example, let's say I was thehappyshoestore and now I'm thehappyshoe.

In Wordpress, there is a section called "Additional CSS." I loved this tool when I was first starting to learn, but now I'm having some issues locating some rules I wrote a long time ago. I looked through every folder for the location of that stylesheet until I found a post on here that said to look in PHP MyAdmin. I noticed it's taking around 500 ms to load it on GT Metrix Waterfall so I wanted to just put the code in the child theme's stylesheet instead.

When I added Cloudflare to my site, the old URL that is a parked domain for the new URL was down for a bit and I noticed that several CSS rules weren't applying. These were rules that I wrote awhile ago prior to changing URLs, but I see now they are no longer in the additional CSS section nor in the custom_css database table, only the new rules are. I also see that the GUID for this entry still has the old site in its URL.

What I would like to do is take all the old rules plus the new ones and add them to the child theme's stylesheet to improve performance. The problem is that I cannot locate the old rules, and I have no clue where it's pulling them from. They are still in effect because if I try to remove an inline html class, it visibly alters the appearance so the rules are still being applied, I just don't know where to look to find them. Any recommendations for locating those old rules would be greatly appreciated.

Share Improve this question asked May 16, 2019 at 23:33 SoCalKinggSoCalKingg 1 1
  • If they're showing on the frontend, could you pull them from there? Viewing the pages source in the browser should contain the CSS. Otherwise, it's difficult to answer this question with no PHP code and no examples of the CSS, or the frontend of the site. Any answer would deal with only hypotheticals as a result – Tom J Nowell Commented May 17, 2019 at 1:14
Add a comment  | 

1 Answer 1

Reset to default 0

Custom CSS contents are kept as separate post type named custom_css. Say, for theme named Simple Life, post entry would be simple-life for post title and post slug. CSS are kept under post_content. So, database table you should be looking for is wp_posts.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745485574a4629751.html

相关推荐

  • css - Help locating old custom_css in PHP MyAdmin

    I started developing a website, and midway through I changed the URL.I was and still am an amateur so unfortunately I&

    1天前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信