-
AuthorPosts
-
July 21, 2015 at 7:04 pm #336396
Hello There,
Yes that is possible by adding some conditional statement to the function so it will display different widget for specific page. Please refer to this link: https://codex.wordpress.org/Conditional_Tags
Further customizations from here would be getting into custom development, which is outside the scope of support we can offer. If you need more in depth changes, you may wish to consult with a developer. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding.July 21, 2015 at 7:54 pm #336429I’m not 100% sure how to read this code. Would you mind giving me an example of how to put a custom sidebar on this page: http://www.ix3gaming.com/groups/league-of-legends/. I only want it for the league of legends group forums.
add_filter('ups_sidebar', 'force_bbpress_sidebar', 20); function force_bbpress_sidebar ( $sidebar ) { return x_is_bbpress() ? 'REPLACE_THIS_WITH_SIDEBAR_ID' : $sidebar; }
July 22, 2015 at 1:27 am #336618Hi,
You can try this code instead.
add_filter('ups_sidebar', 'force_bbpress_sidebar', 20); function force_bbpress_sidebar ( $sidebar ) { if(bp_get_current_group_slug() == "league-of-legends"){ return 'REPLACE_THIS_WITH_SIDEBAR_ID'; } }
Hope that helps.
July 23, 2015 at 7:42 pm #338813I tried it, it works, and I love you for it! The only problem is that it stops all my default sidebars from loading everywhere else. Any idea as to why?
July 24, 2015 at 12:32 am #339023Hi,
Sorry about that, please replace it with this.
add_filter('ups_sidebar', 'force_bbpress_sidebar', 20); function force_bbpress_sidebar ( $sidebar ) { if(bp_get_current_group_slug() == "league-of-legends"){ return 'REPLACE_THIS_WITH_SIDEBAR_ID'; } else { return $sidebar; } }
Hope that helps.
July 24, 2015 at 11:28 am #339500I thought it might have needed an else in there lol, I just didn’t know how to write it. I’m very appreciative of this! THANK YOU 😀
July 24, 2015 at 6:43 pm #339755We’re delighted to assist you with this. Cheers!
September 25, 2015 at 7:37 pm #589843Hello
I’d like to add my custom forum sidebar (ups-sidebar-forum-sidebar) to my main forum page but am having difficulties. Can you help?
In appearance/sidebars/manage sidebars I have created a sidebar called ‘forums’ and placed within it the widgets I need and have ticked ‘forums’ under ‘All pages and posts’. I though that would do the trick but it hasn’t.
http://www.bkdigitalexplorers.org
Thanks
Phillip
September 26, 2015 at 1:42 am #599183Hi there,
Please select one of content layout with sidebar from Customize -> Layout and design.
Also setup a child theme and add provided code in functions.php file.Thanks.
September 29, 2015 at 10:11 am #603194Hi,
I still have this upgrade in my child theme functions, but after the update the sidebar goes down (after the content (see attachment).
One more thing, hoy do i change the font color of the “edit” “quote” “replay” “spam” etc buttons on top of each reply or topic???
September 29, 2015 at 12:25 pm #603404Hi there,
#1 I have just checked on the sidebar of your site and it is displaying correctly on the right. Please refer to the screenshot below. If you are having the issue on a specific page, kindly point us out to that page.
#2 Please add this in the Customizer:
.x-bbp-item-info-header .bbp-admin-links a { color: red; }
Hope this helps.
September 30, 2015 at 2:57 pm #605320I solved it myself in the customizer. Thanks
September 30, 2015 at 5:10 pm #605474You’re most welcome.
October 2, 2015 at 7:57 am #608053How can i change the border color of those links to black?
October 2, 2015 at 9:01 am #608129Hi,
You can add border to the code given above.
.x-bbp-item-info-header .bbp-admin-links a { color: red; border:1px solid black; }
Hope that helps.
-
AuthorPosts