Skip to:
Content
Pages
Categories
Search
Top
Bottom

Widget Confusion – How to customise html of a widget?

  • @derosion

    Participant

    Hey,

    Again, I can’t really find more information on what I want to do other than in the info in the WP codex. Essentially what I would like to do is change the HTML being outputted by widgets such as “latest post” and so on so that I can put my own classes in there and other stuff.

    I’ve tried changing functions.php but the changes don’t seem to take effect. Could someone direct me to where I need to make the changes or better still a page that tells me all this? I’m guessing I have overlooked something … somewhere.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • @jeffsayre

    Participant

    Since this is a BuddyPress forum, I’ll assume you’re talking about the Buddypress widget “Recent Blog Posts” and not the WordPress widget “Recent Posts”

    You need to look in bp-blogs-widgets.php for the code. But, do not change the code within that file. It is a core BuddyPress file and any changes you make will be lost the next time you upgrade. Instead, make a copy of that file and create your own custom widget.

    @derosion

    Participant

    Hi Jeff,

    Thanks for all your help so far. I was indeed talking about the BuddyPress widget. I’ll have a go at that and see what results I get :) thank you. All I really need to do is add some CSS classes and a container box but what I put in functions.php (obviously) gets ignored.

    Cheers!

    How do you create a custom widget?

    ok i found a previous posting, nevermind

    hmm ok the previous posting was pointing to this

    http://bp-dev.org/plugins/featured-groups-widget/

    However, i’m not able to customize it.I tried changing some things but it doesnt show up anything on the mu admin area/widgets. No real documentation anywhere again, i have no idea what functions to call or how anything is structured.

    hmm maybe i should study wordpress?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Widget Confusion – How to customise html of a widget?’ is closed to new replies.
Skip to toolbar