• Resolved stardrive

    (@soghinan)


    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?

    https://wordpress.org/plugins/amr-shortcode-any-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author anmari

    (@anmari)

    Hi stardrive,

    sounds like
    1) you have something weird interfering ? See image from wp 3.8.1 with one of the default themes – ids all nicely there and your background/text colour added

    View post on imgur.com

    2) – 1) above would mess up your css – assuming you specified css correctly)

    3) are you sure you saved it in the shortcodes sidebar ? plugin does try to find it elsewhere and that may cause the weird id possibly according to this post:
    http://wordpress.stackexchange.com/questions/10917/the-widget-and-widgets-id

    Note re post above the ‘shortcode widgets’ he refers to are not my plugins – he means where they do not have an instance passed with saved settings etc

    Thread Starter stardrive

    (@soghinan)

    Many Thanks for your detailed response.
    I will use your guide in your above post to try it again in the next one week and get back to you if there are any issues

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Styling text widget in CSS not working’ is closed to new replies.