Posts: 22
Threads: 7
Joined: Aug 2020
I have tried everything but can't seem to find the simple solution to my text display issues
What is the setting or steps to set user post text to left align?
notice my text is Roman and centered tells me it is a css or sylesheet issue but looking for an answer
Thank you
screenshot from whatsay.com posts
https://www.whatsay.com/screenshot-text-center.png
Posts: 2,904
Threads: 59
Joined: Jun 2010
To left align the comment text you can add this:
Code:
.cmtx_comment_area {
text-align: left;
}
https://www.commentics.org/creating-a-theme
https://www.commentics.org/changing-the-styling
Have
you completed
the interview?
Posts: 22
Threads: 7
Joined: Aug 2020
Thank you
Is this the file to update?
frontend/view/default/stylesheet/css/stylesheet.css?
Posts: 22
Threads: 7
Joined: Aug 2020
so I added the code to the file below
here is a link to a site calling the xcript in an iframe that does not appear to be displaying correctly
https://www.whatsay.com/topics.php?topic...%20Anxiety
is there something else I need to do? add to make comment text left aligned?
Thank you
Posts: 2,904
Threads: 59
Joined: Jun 2010
If you follow the two links that I posted earlier it should work.
They explain how to create the file custom.css (which is what you'll need to add the styling to).
Have
you completed
the interview?
Posts: 22
Threads: 7
Joined: Aug 2020
Thanks,.
Sorry,
I missed the part about creating the new custom.css file.
Is the default install code set to center post text?
Posts: 22
Threads: 7
Joined: Aug 2020
So that worked (just as you said it would)
I wonder since it is so simplistic compared to the stylesheet in the views default stylesheet directory What is the impact of just having that one css instruction in the custom.css file?
Should I be combining any or all of the other stylesheet.css code?
Thank you again Steven
Posts: 22
Threads: 7
Joined: Aug 2020
So I have this in the header of the page displaying comments in an iframe but the typestlye is basically showing as times new roman
<style type="text/css">body {font-family: Tahoma, Arial, sans-serif; } </style>
Is this browser related or is there a css element I can add to the custom.css file you have recommended?
Posts: 2,904
Threads: 59
Joined: Jun 2010
Yes the comment text is designed to appear in the centre by default.
If you want to combine the two CSS files together, you could put the styling into the stylesheet.css file instead of the custom.css file. However it means you'd have to re-apply it after each upgrade. Note that if you have the 'Optimize' setting enabled in Extensions -> Themes then you have to put the styling into the stylesheet.min.css file.
With the iFrame integration, Commentics isn't influenced by your page's stylesheet so it will be using the browser's default font family. You could add something like this:
Code:
.cmtx_container {
font-family: Tahoma, Arial, sans-serif;
}
Have
you completed
the interview?
Posts: 22
Threads: 7
Joined: Aug 2020
yes, thank you, I finally figured out that Firefox default font was times new roman so I changed that to tahoma nad worked. I will also add the new font style code to custom.css
Very appreciative of your great help
-SB