Notifications
Clear all

Style [Solved] Style for the posts

10 Posts
4 Users
4 Reactions
1,221 Views
Posts: 22
 aung
Topic starter
(@aung)
Eminent Member
Joined: 4 years ago

How can I make a custom style that affects only the posts?

9 Replies
Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

@aung,

What exactly are you trying to do?

1 Reply
 aung
(@aung)
Joined: 4 years ago

Eminent Member
Posts: 22

@robert

I'd like to have dashed text-decoration for <a> tag in the posts only. Such as below:

a {
  text-decoration: underline;
  text-decoration-style:dashed;
}

I don't want this to affect other places than posts.

Posts: 1208
(@percysgrowroom)
Noble Member
Joined: 6 years ago
#wpforo-wrap.wpft-post  {

}

I think this will do it, but you have to add what changes you like in between the brackets

6 Replies
 aung
(@aung)
Joined: 4 years ago

Eminent Member
Posts: 22

@percysgrowroom

No, it does not work. ☹️ 

Tutrix
(@tutrix)
Joined: 5 years ago

Noble Member
Posts: 1482

@aung

#wpforo #wpforo-wrap .wpforo-post-content a{
    text-decoration: underline;
    text-decoration-style:dashed;
}
 aung
(@aung)
Joined: 4 years ago

Eminent Member
Posts: 22

@tutrix it works! thanks a lot.

 aung
(@aung)
Joined: 4 years ago

Eminent Member
Posts: 22

@tutrix 

It's weird!
The style affects all the posts - that's what I wanted.
It also affects the signatures - that's okay, I like it.
But it affects the signatures in the forums of the first category only.
I tried with "! important rule", but no luck.

Tutrix
(@tutrix)
Joined: 5 years ago

Noble Member
Posts: 1482

@aung

use this code instead of the one above

#wpforo #wpforo-wrap .wpforo-post-content a, #wpforo #wpforo-wrap .wpforo-post .wpforo-post-signature a{
    text-decoration: underline;
    text-decoration-style:dashed;
}
 aung
(@aung)
Joined: 4 years ago

Eminent Member
Posts: 22

@tutrix brilliant! It works! 👍