- This topic has 20 replies, 5 voices, and was last updated 7 years ago by Tom.
-
AuthorPosts
-
January 11, 2017 at 3:23 pm #263142NBC
Hi, Tom:
I’ve spent the last few days diving into the configuration of bbPress under GP/GP Premium.
I’ve read every thread I can find on here that discusses this combination. I’ve read with special interest the discussions in which you talk about how you achieved the look of this forum. I’ve downloaded the custom CSS you posted at https://gist.github.com/generatepress/eb3c5b834e65b3a76756.
Thanks to Firebug and some persistence, I’ve figured out just about everything I’ve been trying to accomplish.
Except for four things.
1. How did you get the bbp-header bar with the “Favorite” and “Subscribe” links to show up without the bbp-reply-author and bbp-reply-content text being visible?
2. In which section of GP Hooks should I put the code you’ve posted to control the search bar?
<?php if ( is_bbpress() ) : ?> <div class="gp-forum-search"> [ bbp-search-form ] <!-- remove the spaces in the shortcode --> </div> <?php endif; ?>
3. How did you get rid of the
bbp-author-ip
item below the subscriber name? I see one item in your CSS code that relates to it, but all it does is set type size..bbp-author-ip { font-size: 9px !important; }
4. How did you get the avatar and name to move to the right side on the message/reply screen?
Try as I may, these four things have stumped me.
January 12, 2017 at 12:01 am #263240TomLead DeveloperLead DeveloperAll of the up to date CSS can be found here: https://generatepress.com/wp-content/themes/generatepress_child/bbpress.css
It should achieve everything you’re looking for.
As for the GP Hooks question – you would add that wherever you want the search to show up π
February 9, 2017 at 10:20 am #276645MichaelHi Tom,
great work, thanks! I have just one issue as you can see easily in the screenshots.
I would like to have the same design as your support forum. I have substituted the bbpress.css in the folder C:\xampp\htdocs\wp-content\plugins\bbpress\templates\default\css. Have I done something wrong?
Thanks,
MichaelFebruary 9, 2017 at 12:54 pm #276705TomLead DeveloperLead DeveloperHi Michael,
You shouldn’t change core theme or plugin files – you’ll lose all of your changes when you perform updates.
Instead, add the CSS using one of these methods: http://docs.generatepress.com/article/adding-css/
February 10, 2017 at 8:27 am #276991MichaelYep, I know I did something wrong π Many thanks, Tom, great and quick help π
Michael
February 10, 2017 at 10:42 am #277039TomLead DeveloperLead DeveloperNo problem! π
April 18, 2017 at 7:00 am #307290SharifHi Tom,
Should I change any part in the css provided in reply #263240 to be compatible with RTL Languages?
Regards,April 18, 2017 at 9:35 am #307362TomLead DeveloperLead DeveloperThere’s likely some changes to be made, but you’d have to try it to find out.
April 21, 2017 at 11:52 am #308658GabrieleHi,
I put the code for control the search bar in GP Hooks on my website but I have also BuddyPress installed and now the search bar appears in every BuddyPress profile page.
Is there a way to avoid this and make the search bar appears only in the bbPress forum pages?April 21, 2017 at 7:47 pm #308771SharifYou should check Execute PHP and do no forget to save it.
April 22, 2017 at 1:05 am #308861GabrieleHi Sharif,
the Execute PHP option is checked in fact the search bar shortcode doesn’t appears in the WordPress pages, only in BuddyPress pages…April 22, 2017 at 2:43 am #308872SharifHi Gabriele,
If you have used bbpress shortcodes for forums, topics and replies, above code will not work. By default execute PHP will display search in bbpress forums and topics. If you want search option in wordpress pages with bbpress shortcodes try to use [ bbp-search-form ] shortcode. Please remove space between bbp-search-form and brackets.
Regards,April 22, 2017 at 10:51 am #309013TomLead DeveloperLead DeveloperI’m assuming you’re using this code?:
<?php if ( is_bbpress() ) : ?> <div class="gp-forum-search"> [ bbp-search-form ] <!-- remove the spaces in the shortcode --> </div> <?php endif; ?>
If true, the is_bbpress() conditional will only make the search bar appear when on a bbPress page. It shouldn’t appear on BuddyPress as that conditional would return false.
April 22, 2017 at 1:17 pm #309056GabrieleHi
Yes the code is that one but strangely it appears also in every buddypress profile page. Maybe the problem is that one of the buddypress profile links is “forums”, that is linked to bbpress forums and topics started by a user. Could this be the reason why the code “sees” every buddypress profile pages as bbpress page?April 22, 2017 at 7:09 pm #309160TomLead DeveloperLead DeveloperIt could be, hard for me to tell as I can’t see the pages etc..
-
AuthorPosts
- You must be logged in to reply to this topic.