Styling text widget in CSS not working
-
I moved a text widget into the “Widgets for Shortcodes” sidebar, got the id (text-11) of the text widget in the debug mode, the used [do_widget id=text-11] to place the text widget in a column cell of a page. When I style the text widget directly in the “Widgets for Shortcodes” sidebar, the style shows when the page is viewed in the browser; But, when I style the text widget in the stylesheet (text-11 {background: #ff0000; color: #00ff00;) for instance, this style does not show when the page is viewed in the browser. I also noticed that, when i inspect the text element of view source in the browser, the id, text-11, is changed to random value such as of335yd1424b_1.
Please, what could be happening here?
- The topic ‘Styling text widget in CSS not working’ is closed to new replies.