• I’d like to use multiple text widgets, with different style applied to each one. How can I uniquely identify multiple text text widgets; ie, give each a unique id?

    I found only one theme with varied widget colors (manycolorsidea), but it did not vary colors on text widgets.

    Thanks for any suggestions!

    Best,
    Nancy

Viewing 7 replies - 1 through 7 (of 7 total)
  • Why don’t you look at your source code? Every widget has its own class…

    Thread Starter NancyN

    (@nancyn)

    thanks, but already did that. All text widgets have the same class (“widgetready”) and ID (“widgetwidget_text”). What I need is some way to generate differing IDs for them. Interestingly, the content of the text boxes gets varying ids (sidecontent1, sidecontent2, etc) but not the title. So the code that generates the title just needs to function like the code that generates the content. But I don’t want to hack into the code if I can avoid it…

    Well, mine is like this:
    <li id="text-1" class="widget widget_text">
    Each of them with a distinct ID! (sorry, not class)

    Thread Starter NancyN

    (@nancyn)

    What theme are you using? Perhaps I’ve chosen the wrong starting point…

    The widgets’ output is not theme-dependent…

    Thread Starter NancyN

    (@nancyn)

    If not, then why are the class and ID for my text boxes different from yours? My code (from https://gendertalk.com/wp/, my early prototype page):

    <div class="widgetready" id="widgetwidget_text">
    <h3>Resources</h3>
    <ul class="arrow"><li>
    <div class="textwidget">
    <table class="sidetable" cellspacing="0">
    <tr><td class="sidemenu" id="sidecontent3" colspan="2">
    <ul><li><a href="https://www.gendertalk.com/info/resource/general-info.shtml">Transgender</a>
    </li><li><a href="https://www.gendertalk.com/info/resource/glbt-activism.shtml">GLBT</a>
    </li><li><a href="https://www.gendertalk.com/info/resource/intersex.shtml">Intersex</a>
    </li><li><a href="https://www.gendertalk.com/info/resource/womens.shtml">Women's</a>
    </li><li><a href="https://www.gendertalk.com/info/resource/media-activism.shtml">Media &amp; Activism</a>
    </li></ul>
    </td></tr></table>
    </div>
    </li></ul></div>

    Thread Starter NancyN

    (@nancyn)

    OK, I found the code in my theme’s functions.php that makes this happen, I’m moving forward. Thanks for your help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Text Widget Title Colors’ is closed to new replies.