One of the problems I’ve encountered in trying to use the TinyMCE editor in bbPress is styling the text inside the editor itself. The default fonts are serif, but suppose you want sans?
Attempting to override the font-family in the usual way — by modifying your theme’s CSS file — fails because the editor window of TinyMCE is in it’s own tiny little world as far as CSS is concerned.
In order to get TinyMCE to use your own stylesheet, you have to pass it as an argument when the editor is called. Here’s how to do it in bbPress.
function bbp_enable_visual_editor( $args = array() ) {
$args['tinymce'] = array(
'content_css' => '/wp-content/themes/mytheme/css/tinymce-editor.css',
);
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
In the example above, “tinymce-editor.css” is the CSS file you want the editor to use. It is located in a folder entitled “CSS”, which is located in your theme folder “mytheme”. The code above can be copied and pasted into your functions.php file.
Other options for the editor can be found here. Notice that the value for “tinymce” can be an array. That’s what we’re doing above.
Additional arguments to pass in the array for the TinyMCE editor can be found here.
I hope this helps someone. The documentation for styling the editor text could be improved. I banged my head on this problem for years until I stumbled on the solution elsewhere.
Is there any good way to convert a bbPress database to static/archived html files? I was going to try to make the WP2Static work for this, but if there’s a bbPress-specific plugin or something that already exists for this, I’d much rather use that. I looked around of course and couldn’t find anything.
Thanks!
Tim
I had problems with fixed separators in source. I edited the core code, but is there any other way?
See my changes here:
Get rid of fixed separators
I created a site using buddypress. The shortcodes like ,
,
not working. It just shows the shortcode. I tested it with the theme Twenty Seventeen and NO other plugin installed. WordPress 5.1.1, PHP 7.3 (tested also with 5.6 and 7.2), and Buddypress 4.2.0.
You can see it here: https://bbpress.at-creation.ch/login/
Thanks for your help.
Topics and Replier are not linked after importing the bbpress forum data from one WP site to another already live WP site using wordpress default importer. (tools -> import).
Imported properly in backend but on frontend topics and replies are not linked.
Forum repair option event did not worked. This makes topics and replies count zero on frontend.
Need solution ASAP.
Thanks
Can you recommend a plug-in to create a pop-up in BBPress for a new topic instead of an inline form?
How can I correct the error message “Error: Topic ID is missing” in my forum site created with a bbPress plugin?
I need a forum. Two days ago, I installed wordpress 4.9.10, ok. Then installed bbPress, ok. Then installed GD bbPress Attachments, ok. Everything went so easy.
Today I installed 5.1.1, ok. But bbPress not working. I created a “category”, a “forum”, a “topic”, all returns “Oops! That page can’t be found.”
1 Install wordpress: database name, username, password…
2 admin / Plubins / Add New: (1)find bbPress, (2)install it, (3)activate
Nothing else has beed done.
Why 4.9.10 works, but 5.1.1 not?
when bbPress page is loaded, screen changes to 4800 pixels width regardless of screen width (happens also on mobile!)
See the horizontal scroll bar at the bottom of this page?: http://דירוג-אשראי.co.il/%d7%a4%d7%95%d7%a8%d7%95%d7%9e%d7%99%d7%9d/
This only happes on bbPress pages, not on Posts or other site pages: http://דירוג-אשראי.co.il
Hi,
I’m using Responsive theme by CyberChimps. Site orientation is RTL.
Forum pages load on some mobiles (i.e. Galaxy) extremely wide, something like 10 times the size of the actual screen.
The issue also appears when I use 12 on my Tabletop chrome.
This happens only on bbPress pages. Rest of site loads fine (correct width).
here is a link to an example page (Sprry, Site is in hebrew): http://xn—-0hcafem1af3kek.co.il/%D7%A4%D7%95%D7%A8%D7%95%D7%9E%D7%99%D7%9D/%D7%A0%D7%95%D7%A9%D7%90/%D7%93%D7%99%D7%A8%D7%95%D7%92-%D7%90%D7%A9%D7%A8%D7%90%D7%99-%D7%90%D7%99%D7%A9%D7%99-%D7%9C%D7%A6%D7%95%D7%A8%D7%9A-%D7%A7%D7%91%D7%9C%D7%94-%D7%9C%D7%A2%D7%91%D7%95%D7%93%D7%94/
Another site that I have which is NOT RTL loads bbPress pages w/o any error(correct width).
Any help is appreciated.
Roy