CSS styling in head remains despite icon widget being removed
-
Hi
When deciding where to place the icons I tried a few widget areas in my custom theme only to discover that even after removing the widgets the CSS styling remains in the head for the associated ID, despite it not being in use. i.e. below are styles relating to five unique IDs despite the fact I removed four of them and published my site. Surely these should be removed along with the icon widget? I could find and delete via wp_postmeta or options tables (I assume), but I’m not keen to delete from the database.
<style type=”text/css” media=”screen”>#simple-social-icons-1 ul li a,#simple-social-icons-1 ul li a:hover{background-color:#141e28;border-radius:36px;color:#fff;border:0 #fff solid;font-size:18px;padding:9px}#simple-social-icons-1 ul li a:hover{background-color:#141e28;border-color:#fff;color:#fb2056}</style><style type=”text/css” media=”screen”>#simple-social-icons-2 ul li a,#simple-social-icons-2 ul li a:hover{background-color:#fff;border-radius:36px;color:#141e28;border:0 #fff solid;font-size:18px;padding:9px}#simple-social-icons-2 ul li a:hover{background-color:#fff;border-color:#fff;color:#fb2056}</style><style type=”text/css” media=”screen”>#simple-social-icons-3 ul li a,#simple-social-icons-3 ul li a:hover{background-color:#36f;border-radius:36px;color:#eee;border:0 #fff solid;font-size:18px;padding:9px}#simple-social-icons-3 ul li a:hover{background-color:#bbb;border-color:#fff;color:#fff}</style><style type=”text/css” media=”screen”>#simple-social-icons-5 ul li a,#simple-social-icons-5 ul li a:hover{background-color:#141e28;border-radius:36px;color:#fff;border:0 #fff solid;font-size:18px;padding:9px}#simple-social-icons-5 ul li a:hover{background-color:#141e28;border-color:#fff;color:#fb2056}</style>
- The topic ‘CSS styling in head remains despite icon widget being removed’ is closed to new replies.