Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1896

[3.3.x] Styles Support & Discussion • Re: The appearance of the message in the first post?

$
0
0
Hello,

You can add a class to this post.

Open viewtopic_body.html
Find:

Code:

<div id="p{postrow.POST_ID}" class="post has-profile <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF postrow.S_POST_DELETED --> deleted<!-- ENDIF --><!-- IF postrow.S_ONLINE and not postrow.S_POST_HIDDEN --> online<!-- ENDIF --><!-- IF postrow.POSTER_WARNINGS --> warned<!-- ENDIF -->">
Add <!-- IF postrow.S_FIRST_ROW and CURRENT_PAGE eq 1 --> mycustomclass<!-- ENDIF --> to the class attribute.

Code:

<div id="p{postrow.POST_ID}" class="post has-profile <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF postrow.S_POST_DELETED --> deleted<!-- ENDIF --><!-- IF postrow.S_ONLINE and not postrow.S_POST_HIDDEN --> online<!-- ENDIF --><!-- IF postrow.POSTER_WARNINGS --> warned<!-- ENDIF --><!-- IF postrow.S_FIRST_ROW and CURRENT_PAGE eq 1 --> mycustomclass<!-- ENDIF -->">
You now have the mycustomclass class to add style to the elements contained in this div.
e.g. .mycustomclass .avatar {}

Statistics: Posted by cabot — Tue Mar 05, 2024 10:54 am



Viewing all articles
Browse latest Browse all 1896

Trending Articles