WordPress.org

Ready to get started?Download WordPress

Forums

Hack to Hide Widget Titles on Front End, but NOT Backend??? (7 posts)

  1. Adam W. Warner
    Member
    Posted 4 years ago #

    I am using the Widget Logic plugin to display Widgets selectively on over 80 pages. As you might imagine, my list of widgets in the backend is rather long. The issue I'm running into is that a majority of these widgets don't contain anything in the widget title field (because of design choices by my client). This is becoming an increasingly large problem when I need to edit the contents of a widget. Because there are no titles listed in the widget title field, I have to open dozens (sometimes more) widgets to find the one I need to edit.

    Does anyone know of any method, hack, or plugin where I can enter widget titles, have them displayed in the backend, but hide them on the frontend of the site?

  2. Adam W. Warner
    Member
    Posted 4 years ago #

    Anyone have any thoughts on this?

  3. Adam W. Warner
    Member
    Posted 4 years ago #

    I still haven't been able to closer to this...can anyone offer any thoughts on this?

  4. paulaeisenberg
    Member
    Posted 4 years ago #

    Awarner, this is something I'm sure many of us would love to have, and it should be built-in, not require a hack or plugin, seems to me. Like you, I have many PHP and Text widgets, and most of them can't have titles that would show on the front end. So I have to open them up one by one to find the one I need to work on. That's a big waste of time and shouldn't be necessary. A simple check-box like "make title invisible" should do it.

  5. Adam W. Warner
    Member
    Posted 4 years ago #

    @paulaeisenberg,

    I put out the feelers to a couple plugin dev friends and will follow up with them and will post back any results. The hurdle is whether or not WP allows for a filter or hook for Widget titles.

  6. brubrant
    Member
    Posted 3 years ago #

    You could do this trough CSS.

    You can use:

    .widget-title { display: none; }

    OU

    #query-posts-X .widget-title { display: none; }

  7. Adam W. Warner
    Member
    Posted 3 years ago #

    Well, it only took 9 months since my original post about this, but I'm happy to announce that I've made a plugin to solve this problem. It's now available in the plugin repository.

    You can learn all about it here.

    If you find it useful, please blog about it or share on your preferred social network:)

Topic Closed

This topic has been closed to new replies.

About this Topic