Skip to:
Content
Pages
Categories
Search
Top
Bottom

Widgets


  • tyrsdei
    Participant

    @tyrsdei

    Hi, I’d like to make a custom widget with the default bbpress forum list widget as a code starting point. Where would I locate these, and where should I place them once I make it? Should i turn it into a personal plugin so i can use it on other sites if I wish?

    It’s just that the default one is meant for a side bar, and I want one for under my header on my main page.

Viewing 4 replies - 1 through 4 (of 4 total)

  • tyrsdei
    Participant

    @tyrsdei

    https://bbpress.org/forums/topic/where-is-the-code-for-the-bbpress-widgets/ finally found answer here, for location.
    Best suggestion is probably to make my own plugin that adds the widget, right?


    tyrsdei
    Participant

    @tyrsdei

    https://pastebin.com/e2PaK55d

    This is how I’ve converted/copied it so far… Not exactly sure how I would add classes so I can tweak the output via css. I’m a PHP novice. And did I modify all the right fields? I looked at Creating a widget tutorials and modified what i think to be the appropriate code


    tyrsdei
    Participant

    @tyrsdei

    I tried it, but it doesn’t work as is… To be specific, I’m looking to correctly clone the forum list widget as a plugin, so I can add styling to it.


    tyrsdei
    Participant

    @tyrsdei

    I’m missing a file, I’m sure this is only half of what I need =/ where do I find the piece that calls the widget and formats it?
    Do capitals have to be used when specifying the class forumdisplay_widget? The plugin installs fine, but the widget doesn’t show.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar