Notifications
Clear all

wpForo 1.x.x [Solved] The Attachment file has the wrong icon!

26 Posts
3 Users
3 Likes
441 Views
Beyondforce
Posts: 109
Topic starter
(@beyondforce)
Estimable Member
Joined: 4 years ago

Hey guys,

I was wondering how can I change the attachment file icon. As you can see in the picture, the icon is a Message icon instead of a Download icon (fas fa-download) or a File icon!

 

Thanks for the help.

25 Replies
Sofy
Posts: 4057
 Sofy
Admin
(@sofy)
Support Team
Joined: 5 years ago

Hi @beyondforce,

Please provide us some example URL. 

24 Replies
Beyondforce
(@beyondforce)
Joined: 4 years ago

Estimable Member
Posts: 109
Anonymous20
(@anonymous20)
Joined: 7 years ago

Noble Member
Posts: 1602
Beyondforce
(@beyondforce)
Joined: 4 years ago

Estimable Member
Posts: 109

@anonymous20,

Do you think it's related?

 

Anonymous20
(@anonymous20)
Joined: 7 years ago

Noble Member
Posts: 1602
Posted by: @beyondforce

@anonymous20,

Do you think it's related?

 

I have no idea, still you must fix them.

 

Beyondforce
(@beyondforce)
Joined: 4 years ago

Estimable Member
Posts: 109

@anonymous20,

The errors are related to my theme that I'm working on replacing.

 

Anonymous20
(@anonymous20)
Joined: 7 years ago

Noble Member
Posts: 1602
Posted by: @beyondforce

@anonymous20,

The errors are related to my theme that I'm working on replacing.

 

I do not know from where they come, still they are also in wpForo pages.

 

Anonymous20
(@anonymous20)
Joined: 7 years ago

Noble Member
Posts: 1602
Posted by: @beyondforce

@anonymous20,

The errors are related to my theme that I'm working on replacing.

 

Also all your SEO is wrong. Titles and Description and all. Why don't you use the wpForo SEO options?

All your topics have the main page titles and description.

For example:

https://tesreg.com/community/fusion-360/how-to-create-propellers-f3d-file/

has:

<title>Forum - TESTREG.com</title> 

<meta name="robots" content="index,follow"> <meta name="description" content="Join our community to get any help with the Benchmark Table, Fusion 360 or if you just want to say Hi! ;)" />
Beyondforce
(@beyondforce)
Joined: 4 years ago

Estimable Member
Posts: 109

@anonymous20,

I believe the SEO is turned on, but it never worked for me. Maybe you can give me some pointers on how to fix this!?

 

Anonymous20
(@anonymous20)
Joined: 7 years ago

Noble Member
Posts: 1602
Posted by: @beyondforce

@anonymous20,

I believe the SEO is turned on, but it never worked for me. Maybe you can give me some pointers on how to fix this!?

 

I do not see any wpForo SEO tags, i see some other SEO plugin (hard to tell which since you optimize the html).

Do you use some SEO plugin? Are you sure you have enabled wpForo SEO?

 

Beyondforce
(@beyondforce)
Joined: 4 years ago

Estimable Member
Posts: 109

@anonymous20,

I'm using Squirrly SEO. Maybe it's blocking wpforo SEO. I'll turn it off now and see it helps.

Where do I find the wpforo SEO?

 

Beyondforce
(@beyondforce)
Joined: 4 years ago

Estimable Member
Posts: 109

Okay, I found the SEO features and they are on - Titles and Tags.

I have also disabled the Squirrly SEO. Do you know a better SEO plugin that works well with WPforo SEO?

Anonymous20
(@anonymous20)
Joined: 7 years ago

Noble Member
Posts: 1602

@beyondforce

Remove that "seo" plugin and install SEO Framework that is wpForo aware. The wpForo SEO is in wpForo settings.

 

 

Sofy
 Sofy
Admin
(@sofy)
Joined: 5 years ago

Support Team
Posts: 4057

@beyondforce,

Please see how it looks in my case. The screenshot is attached below.

To display the attachment icon follow the solution below.

Please navigate to Dashboard > Forums > Settings > Styles admin page, put the following CSS code in the "Custom CSS Code" textarea, save it, delete all caches and check again. 

#wpforo #wpforo-wrap .attach_cant_view span:before {
content: "\f0c6";
font-family: "Font Awesome 5 Free";
font-weight: bold;
}

 

Beyondforce
(@beyondforce)
Joined: 4 years ago

Estimable Member
Posts: 109

@sofy,

That's odd, I get a different icon instead and if I'm trying to force it, then I get no icon.

 

Sofy
 Sofy
Admin
(@sofy)
Joined: 5 years ago

Support Team
Posts: 4057

@beyondforce,

Have you added the CSS code provided by me in the previous post? 

 

Beyondforce
(@beyondforce)
Joined: 4 years ago

Estimable Member
Posts: 109

@sofy

Yes, but it doesn't work. I get a square icon.

 

Sofy
 Sofy
Admin
(@sofy)
Joined: 5 years ago

Support Team
Posts: 4057

@beyondforce,

Please put the following CSS code as well:

i.far.fa-file.fa-5x.wpfa-file-icon {
font-weight: bold !important;
}

 

Beyondforce
(@beyondforce)
Joined: 4 years ago

Estimable Member
Posts: 109

@sofy

Yessss, now it's working! 😀 

Some many css code lines for 1 icon! Is that how it's supposed to be?

 

Sofy
 Sofy
Admin
(@sofy)
Joined: 5 years ago

Support Team
Posts: 4057

Yes, @beyondforce, please keep those codes. 

 

Beyondforce
(@beyondforce)
Joined: 4 years ago

Estimable Member
Posts: 109

@sofy, Thanks for all you help.

Could you please recommend an SEO plugin that works well with WPforo SEO?

 

Sofy
 Sofy
Admin
(@sofy)
Joined: 5 years ago

Support Team
Posts: 4057

@beyondforce,

I'd suggest you read Robert's answer here: https://wpforo.com/community/how-to-and-troubleshooting-2/seo-search-engine-optimizer-on-wpforo/#post-22486

 

Beyondforce
(@beyondforce)
Joined: 4 years ago

Estimable Member
Posts: 109

@sofy,

But I also need an SEO for the rest of my website.

Till now, I have used Squirrly SEO and it conflicted with WPforo SEO, which is why I'm looking for another one.

 

Sofy
 Sofy
Admin
(@sofy)
Joined: 5 years ago

Support Team
Posts: 4057

@beyondforce,

Please try the plugin mentioned by Jimmy George in this topic: 

https://wpforo.com/community/wpforo-integration/seopress-3-7-8-is-compatible-with-wpforo/

 

Beyondforce
(@beyondforce)
Joined: 4 years ago

Estimable Member
Posts: 109

@sofy, Thank you.

 

Share: