#1 WordPress forum plugin created by gVectors Team

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

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
General Discussions
wpForo advanced the...
 
Share:
Notifications
Clear all

[Solved] wpForo advanced theme customization

    Last Post
RSS

fawp
Posts: 72
 fawp
Topic starter
July 13, 2020 12:56 pm
(@fawp)
Trusted Member
Joined: 1 year ago

Hello,

 

According to wpForo documentation about customizing themes,

You can edit these files in an upgrade-safe way using overrides. For example, copy the certain or all files of /classic/ folder into a folder within your current active WordPress theme named /wpforo/, keeping the same file structure.

 

So I tried for example to customize the post.php template by copying it into

wp-content/themes/yourtheme/wpforo/layouts/1/post.php

as documented and this works. So far, so good.

 

What if I wanted to customize a template other than forum.php, topic.php or post.php? For instance, if I wanted to customize members.php in an upgrade-safe way, could I copy the entire /classic/ folder onto another theme (let's call it /mytheme123/) and do the modifications there?

 

In other words, as well as having the folder structure

 

wp-content/plugins/wpforo/wpf-themes/classic/

 

I would also have

 

wp-content/plugins/wpforo/wpf-themes/mytheme123/

 

which is where I would perform the customizations.

Presumably, next time wpForo is upgraded it would be a matter of saving the contents of this /mytheme123/ folder somewhere else, upgrade and then copy back the /mytheme123/  folder.

 

I do realize that, should there be any changes made by you guys to one or more files that are currently in the /classic/ folder, those changes would not be reflected in the customized theme, and that I would have to perform some checks to see what, if anything, was changed.

 

Do you see any issues with this approach, or do you have a better suggestion?

 

Thanks

fawp

 

 

 

 

Topic Tags
themes customization update
3 Replies
fawp
Posts: 72
 fawp
Topic starter
July 13, 2020 5:03 pm
(@fawp)
Trusted Member
Joined: 1 year ago

Update: I've just read in this post

 

  1. you need to copy the recent.php file (from wp-content/plugins/wpforo/wpf-themes/classic) into a folder within your current active WordPress theme named /wpforo/,
  2. in the 106 line find the wpforo_member_link  function,
  3. change the last argument 's value.

Does that mean that I can simply copy any template file I want to modify into my active theme?

If so, do I need to maintain a certain folder structure?

 

Thanks

1 Reply
Robert
 Robert
Admin
(@robert)
Joined: 5 years ago

Support Team
Posts: 7622
July 14, 2020 4:46 am
Reply tofawpfawp

@fawp,

The template file customization documentation is here:

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

As you can see, you should create /wpforo/ folder in your active WordPress theme folder and copy the preferred wpForo template file into just created /wpforo/ folder.

And here are all template files (the CSS files are not supported yet):

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

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
Posts: 72
 fawp
Topic starter
July 14, 2020 7:48 am
(@fawp)
Trusted Member
Joined: 1 year ago

Great, thanks @Robert, I get it now.

Robert liked
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • Looking For A Wp-Foro Ninja
    1 year ago
  • Plans
    1 year ago
  • WpForo slow developement
    2 years ago
  • Where can I find various wpforo themes?
    2 years ago
Topic Tags:  themes (3), customization (18), update (14),

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
View all Addons »

Recent Topics

  • Foro "moves" in Mobile devices as Admin

    By Jesus, 5 hours ago

  • Disabling Add Topic option

    By WeAreThe99, 5 hours ago

  • Lost the menu !!

    By dimalifragis, 6 hours ago

  • Forum is displayed narrow on mobile

    By jalin0919, 13 hours ago

  • How to clear cache for forum? It's for my users view, it's caching old data.

    By dantesalvino, 21 hours ago

  • User role does not adhere to user group

    By langel87, 21 hours ago

Topic Tags

  • new features43
  • seo39
  • translation37
  • plugin conflict36
  • forum35
  • buddypress33
  • login33
  • registration30
  • threaded layout30
  • ultimate member29
  • moderation28
  • editor25
  • avatar24
  • shortcode24
  • css24
  • menu23
  • tags22
  • profile21
  • migration20
  • url20
View all tags (1512)

Recent Posts

  • Foro "moves" in Mobile devices as Admin

    Hi, it's not really a mayor problem IF IT ONLY HAPPENS ...

    By Jesus, 5 hours ago

  • RE: Disabling Add Topic option

    @wearethe99, Sure it's possible. You can create ne...

    By Sofy, 5 hours ago

  • RE: I now get the email notifications but no longer "bell notifications"

    Ahhhh, great, things starts to make sense then. I was...

    By Jesus, 5 hours ago

  • RE: What this means / do

    @jesus, You've added the screenshot, but I'll need to...

    By Sofy, 6 hours ago

  • RE: Lost the menu !!

    Hi Sofy, For some reason the menu selection are lost,...

    By dimalifragis, 6 hours ago

  • RE: wpforo-admin-note Help

    I've already provided the article in previous post. You...

    By Sofy, 7 hours ago

  • RE: Forum is displayed narrow on mobile

    Thanks for your support. I resolved problem with belo...

    By jalin0919, 10 hours ago

Share:
  Forum Statistics
20 Forums
8,020 Topics
40.2 K Posts
9 Online
15.5 K Members

Latest Post: Foro "moves" in Mobile devices as Admin Our newest member: fishouhgn385 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-2021 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
  • Documentation