Skip to:
Content
Pages
Categories
Search
Top
Bottom

How To Use Group Widget Outside of Widget

  • @abfinteractive

    Participant

    Hi,

    I would like to display the Groups widget but outside of a widget area. How would be the best way to go about doing this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • @jivany

    Participant

    Create a new widget area. It’s easy. Check out the following WP codex page for a bunch of links on how to widgetize a theme.

    https://codex.wordpress.org/WordPress_Widgets#Resources

    Basically, you create a new widget area and then in your child theme, you put the new widget area where you want to display your group widget.

    @jivany

    Participant

    Create a new widget area. It’s easy. Check out the following WP codex page for a bunch of links on how to widgetize a theme.

    https://codex.wordpress.org/WordPress_Widgets#Resources

    Basically, you create a new widget area and then in your child theme, you put the new widget area where you want to display your group widget.

    @andystaple

    Participant

    I could do that (myself and abfinteractive are working together), but I’ve run into one problem.

    I want to add the widgetized area to my child theme (and therefore put it in my child themes functions.php so it won’t get overwritten during a BP upgrade) but I’m not sure how to do this. When I’ve done it before it renders the original bp-default right sidebar (which we use) dead and only one works.

    Is there a way around this, should I remove the sidebar from the bp-default’s functions.php and move that to the child themes with the new one?

    @andystaple

    Participant

    I could do that (myself and abfinteractive are working together), but I’ve run into one problem.

    I want to add the widgetized area to my child theme (and therefore put it in my child themes functions.php so it won’t get overwritten during a BP upgrade) but I’m not sure how to do this. When I’ve done it before it renders the original bp-default right sidebar (which we use) dead and only one works.

    Is there a way around this, should I remove the sidebar from the bp-default’s functions.php and move that to the child themes with the new one?

    @jivany

    Participant

    Change the name of your widget area in your child theme.

    You should be able to pretty much copy the widget area registration functions from the bp-default/functions.php file into your own child theme’s functions.php file.

    @jivany

    Participant

    Change the name of your widget area in your child theme.

    You should be able to pretty much copy the widget area registration functions from the bp-default/functions.php file into your own child theme’s functions.php file.

    @andystaple

    Participant

    I got it now. It didn’t like my names for some reason so I just changed them and it’s working. Thanks for the help jivany

    @jivany

    Participant

    Aw shucks. I saw this earlier today and was going to suggest it as an option.

    http://digwp.com/2010/04/call-widget-with-shortcode/

    PS tag the topic as resolved if you’ve got it figured out. :)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How To Use Group Widget Outside of Widget’ is closed to new replies.
Skip to toolbar