SimplePortal

Support => English Support => Topic started by: Jester on October 14, 2014, 07:47:18 AM

Title: Font size in ShoutBox
Post by: Jester on October 14, 2014, 07:47:18 AM
I did a search but didn't find this... Is there a way to change the default Font size for the shoutbox?

Al
Title: Re: Font size in ShoutBox
Post by: [SiNaN] on October 19, 2014, 01:38:23 PM
Themes/default/css/portal.css

Code: (Add to end) [Select]
.shoutbox_container
{
font-size: 15px;
}
Title: Re: Font size in ShoutBox
Post by: Jester on October 20, 2014, 08:50:28 AM
That doesn't seem to make any change to the font size in the shout box.
Title: Re: Font size in ShoutBox
Post by: {OCS}MasterSeal on November 12, 2014, 05:18:50 AM
I have the same issue. When I installed SP< I think I recall it asking me if I wanted to customize other themes, and so I said yes, for the one I'm using. Theoretically, when you change the default settings that should be system wide regardless of themes, or at least portal.css only shows up in the directory stated by SiNaN : Themes/default/css/portal.css etc.

with that said, I've changed the included .shoutbox_container entry, and it was x-small I changed it to 16px, and no change whatsoever.

Does the SP script change/add the shoutbox settings for CSS somewhere in the custom themes area? I have yet to find it, but for some reason no matter what I change in the CSS, the Shoutbox won't change its font size or even color. (I'm confused) I really don't wanna get into the pHp portion although I could, I don't wish to change anything in SP on such a level.

Any help would be appreciated. Thank you.

...Seal...
Title: Re: Font size in ShoutBox
Post by: Chen Zhen on November 12, 2014, 09:54:14 PM
{OCS}MasterSeal,

  Whenever one edits a css file, the browser history/cache must be emptied/deleted to view the changes. Please attempt this procedure after making changes to see if it resolves the issue.

Regards.
Title: Re: Font size in ShoutBox
Post by: Cal on December 03, 2014, 12:26:03 PM
Also, the chatbox line items are enclosed in class="smalltext", which is set in index.css at 0.85em by default (which, if you set a specific font size in index.css, can end up very, VERY small).
Title: Re: Font size in ShoutBox
Post by: [SiNaN] on December 03, 2014, 01:15:46 PM
I have the code I gave above added at the end of my portal.css file and it works beautifully. Perhaps you need to clear your browser cache as was suggested above? If it still doesn't work, try this I guess?

Code: [Select]
.shoutbox_container
{
font-size: 15px !important;
}
Title: Re: Font size in ShoutBox
Post by: {OCS}MasterSeal on March 15, 2015, 10:18:23 PM
I have the code I gave above added at the end of my portal.css file and it works beautifully. Perhaps you need to clear your browser cache as was suggested above? If it still doesn't work, try this I guess?

Code: [Select]
.shoutbox_container
{
font-size: 15px !important;
}

I know this is a 90 day old post but it was relevant instead of starting another post for obvious reasons.

I just needed to know, this addition works but doesn't apply to the "shoutbox history" code.. what would I add for that? Thank you.

...Seal...
Title: Re: Font size in ShoutBox
Post by: Chen Zhen on March 17, 2015, 11:04:19 PM
{OCS}MasterSeal,

File: ../Themes/default/PortalShoutbox.template.php

find (this line appears twice within the file, you can edit both instances):
Code: [Select]
<li class="smalltext">', str_replace('ignored_shout', 'history_ignored_shout', $shout['text']), '</li>

replace with:
Code: [Select]
<li class="smalltext shoutbox_container">', str_replace('ignored_shout', 'history_ignored_shout', $shout['text']), '</li>

Regards.

Title: Re: Font size in ShoutBox
Post by: {OCS}MasterSeal on March 20, 2015, 09:47:29 PM
THANK YOU!


...Seal...
Title: Re: Font size in ShoutBox
Post by: [SiNaN] on August 01, 2015, 07:27:37 AM
Jester, do you require further assistance with this issue?
SimplePortal 2.3.8 © 2008-2024, SimplePortal