Group Admins

WordPress Troubleshooting and Support

Public Group active 1 year, 1 month ago ago

WordPress support from our community

Adding widget IDs to a theme that doesn’t have them

  • This topic has 2 replies, 2 voices, and was last updated 11 years ago by Jay.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1304
    Jay
    Participant

    I’ve implemented the Centita theme here:
    http://www.emlingroup.com/site/employers/

    How can I assign an ID to the individual widgets’s sidebox-top and sidebox? The problem is that on that page, I wanted to hide the top widget so I put #cforms-3 {display:none;} into the CSS which did hide the middle part of the widget, but it left the sidebox and sidebox top because there’s no ID i can attribute to those.

    These are the two files that I’m assuming drive the widget code…
    themewidgets.php: http://pastebin.com/32xWBiJy
    sidebar.php: http://pastebin.com/eTk25UFz

    …but I don’t know what to do to them to assign an ID to each widget area.

    Please advise. Thanks in advance.

    #2251
    D.K. Smith
    Participant

    Have you tried the Widget Logic plugin?

    http://wordpress.org/extend/plugins/widget-logic/

    #2252
    Jay
    Participant

    good stuff. thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.