#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...
Customizing CSS fil...
 
Share:
Share
Tweet
Share
Notifications
Clear all

[Solved] Customizing CSS file

    Last Post
RSS

zmgma
Posts: 19
 zmgma
Topic starter
March 5, 2020 12:35 am
(@zmgma)
Active Member
Joined: 2 years ago

Hello!

I have read this documents and it helps a lot.

https://wpforo.com/docs/root/forum-themes/theme-customization/

I have one more suggestion.

Please support customized style.css and colors.css like that layout customization.

If I add those two files under theme file > wpforo > classic, that's how it works.

Thank you.

Best regards,

Youzer

This topic was modified 2 years ago 2 times by zmgma
Topic Tags
suggestions css customization
4 Replies
Sofy
Posts: 4057
Sofy - Facebook Sofy - Twitter
 Sofy
Admin
March 5, 2020 9:16 am
(@sofy)
Support Team
Joined: 4 years ago

Hi @zmgma,

As I've already mentioned here: https://wpforo.com/community/how-to-and-troubleshooting-2/can-i-change-colors-css-file/ the CSS files are not included in theme overwriting method. I'm really sorry but there is no way to overwrite colors.css and style.css. The only way is using colors settings options in Dashboard > Forums > Settings > Styles admin page.

You should add the custom CSS codes in the "Custom CSS code" textarea.

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.

fawp
Posts: 114
 fawp
Beta Tester
May 18, 2020 1:09 pm
(@fawp)
Estimable Member
Joined: 3 years ago

Hi @Sofy

 

Over the past few days I have been reading about wpForo style customization and I have come across this thread here.

 

I just want to clarify: you mention here that, at the moment

Posted by: @sofy

CSS files are not included in theme overwriting method. I'm really sorry but there is no way to overwrite colors.css and style.css

yet in this document that mentions theme files I see at the very end of the page:

IMPORTANT: Please don’t use these two files for template style and color customization. These are theme core files and should not be changed. Style should be customized using style.css file.

The last paragraph (in bold) seems to be at odds with the statement above. Is it a matter of amending the documentation in that page, or am I missing something?

 

Many thanks as always,

fawp

2 Replies
Alvina
 Alvina
Moderator
(@alvina)
Joined: 3 years ago

Member
Posts: 1873
Alvina - Facebook Alvina - Twitter
May 20, 2020 12:45 pm
Reply tofawpfawp

@fawp,

There is no way to customize those files.

However, if you're familiar with programming and need to make those changes, please put the following code in the current active theme functions.php file. The code provided below allows you to disable the our CSS files and enable the custom files provided by you.

add_action('wp_enqueue_scripts', function(){
wp_deregister_style('wpforo-style');
wp_register_style('wpforo-style', '/YOUR/CUSTOM/STYLE/CSS/STYLE.CSS', false, 'YOUR_STYLE_VERSION' ); wp_deregister_style('wpforo-widgets');
wp_register_style('wpforo-widgets', '/YOUR/CUSTOM/WIDGET/CSS/WIDGETS.CSS', false, 'YOUR_WIDGET_STYLE_VERSION' ); wp_deregister_style('wpforo-dynamic-style');
wp_register_style('wpforo-dynamic-style', '/YOUR/CUSTOM/COLORS/CSS/COLORS.CSS', false, 'YOUR_COLORS_CSS_VERSION' );
});

Please note the red marked code should be your file path and the version of that file to reset the caches if those exist.

But please note if we update the plugin, and add a new feature that has some relation with styles, you'll not have those new features. Then you will need to go to this file, see changes and manually add it on your CSS file. Or after that customization, you should not update the plugin.

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.

fawp liked
fawp
 fawp
Beta Tester
(@fawp)
Joined: 3 years ago

Estimable Member
Posts: 114
May 21, 2020 6:53 am
Reply toAlvinaAlvina
fawp

Ok, thanks @alvina, I understand.

Alvina liked
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • Petits icons
    2 weeks ago
  • How do I change the user names so the full name appears, and not cut off with "..." on the end?
    2 weeks ago
  • CSS button selectors for pixelyoursite
    4 weeks ago
  • Slight changes to my forum
    1 month ago
  • CSS Color Issue
    3 months ago
Topic Tags:  suggestions (13), css (52), customization (24),

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

  • user can't access forum ( 404 ) after user role changed

    By perisaibanten165, 1 day ago

  • Suggestion Private Replies

    By shaleedt, 2 days ago

  • Why doesn't Google index pages?

    By Onurkansan, 2 days ago

  • Attachments not showing on forums posts after migration

    By Formicid, 4 days ago

  • New Feature About Plugin Customization and Integration

    By z14165899, 5 days ago

  • WordPress Email sending function wp_mail() doesn't work!

    By feassistant, 5 days ago

Topic Tags

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

Recent Posts

  • RE: İs there a way to use mobile push notifications on wpforo ? Like one signal push notifications?

    @alvina Can you at least give some information how to a...

    By przla, 17 mins ago

  • RE: Enable browser push notification

    @robert Are you thinking about adding it? Or at least m...

    By przla, 20 mins ago

  • RE: OneSignal push notification plugin integration

    @acornavi 3 years later. Did you have any luck with thi...

    By przla, 28 mins ago

  • Any chance to have a second way of notifying user about following posts via web push notifications?

    Hello, it has been asked many times many years ago (e.g...

    By przla, 29 mins ago

  • RE: user can't access forum ( 404 ) after user role changed

    Hi perisaibanten165, Please check this FAQ topic, it ...

    By Chris, 47 mins ago

  • RE: Why doesn't Google index pages?

    you are using dns caching You use Jetpack Photon (Per...

    By Tutrix, 2 days ago

  • Private Replies

    Is there a way to set the topic public but the comments...

    By shaleedt, 2 days ago

Share:
Share
Tweet
Share
  Forum Statistics
21 Forums
9,945 Topics
50.3 K Posts
8 Online
49 K Members

Latest Post: İs there a way to use mobile push notifications on wpforo ? Like one signal push notifications? Our newest member: sid2901singh 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