#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
Wpforo tinymce bloc...
 
Share:
Share
Tweet
Share
Notifications
Clear all

[Solved] Wpforo tinymce blockquote background color

    Last Post
RSS

Supporto
Posts: 8
 Supporto
Topic starter
October 19, 2020 2:28 pm
(@supporto)
Active Member
Joined: 2 years ago

In the thread linked below, Robert provided hooks to change the wpforo tinymce background color. This is the only solution that has worked for me out of many attempts to change it with CSS. I've changed all the other parts of the tinymce editor except for one. The last one in question is the background color of the "blockquote". Currently it is white against the black background of the rest of the editor, and the pale text is unreadable against it.

What hook/filter could I put in the theme functions to change this blockquote background style for wpforo? Thanks

 

https://wpforo.com/community/how-to-and-troubleshooting-2/comment-box-background-on-threads/

This topic was modified 2 years ago 2 times by Supporto
Topic Tags
tinymce editor background editor blockquote blockquote background
11 Replies
Alvina
Posts: 1873
Alvina - Facebook Alvina - Twitter
 Alvina
Moderator
October 20, 2020 7:16 am
(@alvina)
Member
Joined: 3 years ago

Hi @supporto,

Please register some new testing user and leave the user's login details with your forum URL here. 

As far as the topic is private, the login details can be left without any worries.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Supporto liked
10 Replies
Supporto
 Supporto
(@supporto)
Joined: 2 years ago

Active Member
Posts: 8
October 20, 2020 9:50 pm
Reply toAlvinaAlvina

@alvina That would be great, though I would prefer if this thread could be deleted once the matter is resolved if possible just to be certain!

[deleted]

Thanks

 

This post was modified 2 years ago by Supporto
Robert
 Robert
Admin
(@robert)
Joined: 6 years ago

Support Team
Posts: 9089
Robert - Twitter
October 22, 2020 6:26 am
Reply toSupportoSupporto
Alvina

@supporto,

You should add CSS for blockquote in the CSS part ($settings['tinymce']['content_style']) of the code I provided before:

 blockquote { background: #3C3C3C !important; color:#dddddd !important; }

 

So you can remove the code for background and put this one, the final code should look like this:

function wpforo_custom_editor_css( $settings ){
if( isset($settings['tinymce']['content_style']) ){
$settings['tinymce']['content_style'] .= ' body{background-color: #000000!important; color: #fff3ca!important;} blockquote { background: #3C3C3C !important; color:#dddddd !important; }';
}
return $settings;
}
add_filter('wpforo_editor_settings', 'wpforo_custom_editor_css', 12);

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Supporto liked
Supporto
 Supporto
(@supporto)
Joined: 2 years ago

Active Member
Posts: 8
October 22, 2020 1:36 pm
Reply toRobertRobert
Supporto
Alvina

@robert Hi Robert, thanks for this - I tried doing this before, and strangely it causes the tinymce form to start load eternally so it becomes impossible to reply. When I copy your new code, the same happens. Seems like it should work logically yet it breaks the editor (the editor works perfectly with just the background code).

If I replace "body" in the original code with "blockquote" it works perfectly for the blockquote, but getting both to work either crashes tinymce or does nothing for the second parameter.

This post was modified 2 years ago 2 times by Supporto
Martin
 Martin
Moderator
(@martin)
Joined: 6 years ago

Support Team
Posts: 851
Martin - Facebook Martin - Twitter
October 23, 2020 10:35 am
Reply toSupportoSupporto
Robert
Supporto
Alvina

@supporto,

So, is it fixed?

Powered by gVectors Team. our popular plugins:
wpForo, wpDiscuz

Supporto liked
Supporto
 Supporto
(@supporto)
Joined: 2 years ago

Active Member
Posts: 8
October 23, 2020 11:16 am
Reply toMartinMartin
Supporto
Robert
Supporto
Alvina

@martin Unfortunately not, I can't get both the background and the blockquote color changes to work simultaneously without it breaking the tinymce form.

Robert
 Robert
Admin
(@robert)
Joined: 6 years ago

Support Team
Posts: 9089
Robert - Twitter
October 24, 2020 8:15 pm
Reply toSupportoSupporto
Martin
Supporto
Robert
Alvina

@supporto,

Please copy again the code and replace with the code you have. Save it in the functions.php file of your WordPress theme, then delete all caches and check it.

Also, I want to see a screenshot of the code in your functions.php editor. And other codes in that file.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Supporto liked
Supporto
 Supporto
(@supporto)
Joined: 2 years ago

Active Member
Posts: 8
October 25, 2020 11:39 am
Reply toRobertRobert
Supporto
Martin
Supporto
Alvina

@robert Hi Robert, I've just tried again - Clearing all caches including my Cloudflare cache has fixed the issue, and your code works perfectly now. Much appreciated!

This post was modified 2 years ago 2 times by Supporto
Robert liked
Supporto
 Supporto
(@supporto)
Joined: 2 years ago

Active Member
Posts: 8
October 23, 2020 10:27 am
Reply toRobertRobert
Supporto
Alvina

@robert Also, while I'm on this topic - A forum-wide dark mode setting would be incredible for wpforo 2.0!

Martin
 Martin
Moderator
(@martin)
Joined: 6 years ago

Support Team
Posts: 851
Martin - Facebook Martin - Twitter
October 23, 2020 10:47 am
Reply toSupportoSupporto
Robert
Supporto
Alvina

@supporto,

Yes, it's a good idea. We'll probably discuss this.

Powered by gVectors Team. our popular plugins:
wpForo, wpDiscuz

Supporto liked
Supporto
 Supporto
(@supporto)
Joined: 2 years ago

Active Member
Posts: 8
October 23, 2020 11:20 am
Reply toMartinMartin
Supporto
Robert
Supporto
Alvina

@martin That's great, thanks

  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • Post Toolbar visual issues
    4 months ago
  • Tables?
    5 months ago
  • Problem with tinymce in wp-foro
    8 months ago
  • Hi I want to use TinyMCE
    10 months ago
  • Threaded layout "Add Topic" editor related question
    10 months ago
Topic Tags:  tinymce (15), editor background (2), editor blockquote, blockquote background,

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • Notification bell order

    By teepeenomad, 23 hours ago

  • Not İndexing

    By selinahub, 2 days ago

  • H1 to H6 title tags : remove

    By venus, 2 days ago

  • Can't access forum dashboard 504 gateway time-out

    By Joselito, 2 days ago

  • Sharing with Facebook and Twitter is kind of broken

    By seancallahan, 3 days ago

  • Users cannot access their accounts

    By Kuduly, 3 days ago

Topic Tags

  • css52
  • translation50
  • plugin conflict48
  • seo47
  • new features45
  • buddypress43
  • avatar41
  • moderation40
  • ultimate member40
  • login40
  • forum40
  • registration37
  • threaded layout35
  • cache34
  • editor33
  • menu33
  • shortcode32
  • spam31
  • forum accesses30
  • widget29
View all tags (2188)

Recent Posts

  • RE:

    By Anonymous, 53 years ago

  • RE: Notification bell order

    @tutrix Brilliant, thank you for this! Although, it ...

    By teepeenomad, 2 hours ago

  • RE: Is there a way to add safety features?

    @seancallahan, The feature is in the to-do list, I ca...

    By Chris, 6 hours ago

  • RE: wpForo 2.0.0.1 beta version is released for beta testers!

    Added, thank you.

    By Robert, 24 hours ago

  • RE: Post title length error.

    Hi @hasanaytac, Please provide your forum URL.

    By Chris, 1 day ago

  • RE: Health.gd Health website

    Nice forum, still you have an issue / crash: Uncaught...

    By dimalifragis, 1 day ago

  • RE: Not İndexing

    Google Webmaster will tell you why.

    By dimalifragis, 2 days ago

Share:
Share
Tweet
Share
  Forum Statistics
21 Forums
9,924 Topics
50.2 K Posts
4 Online
47.6 K Members

Latest Post: Notification bell order Our newest member: charmain69c5842 Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation