TinyPortal

Development => Support => Topic started by: sanax on December 22, 2006, 10:39:24 PM

Title: Resize text in certain blocks
Post by: sanax on December 22, 2006, 10:39:24 PM
I want to resize text in certain blocks. If I make changes to my style.css it changes most of the text through out the site...

Can someone help with the php code and where can I add this code?
Title: Re: Resize text in certain blocks
Post by: JPDeni on December 22, 2006, 11:21:54 PM
Which blocks?
Title: Re: Resize text in certain blocks
Post by: sanax on December 23, 2006, 03:53:34 AM
I want to resize the font in the front page blocks (summaries of the articles and forum posts)
Title: Re: Resize text in certain blocks
Post by: JPDeni on December 23, 2006, 05:18:26 AM
The reason I asked is that there are two possibilities. With the "freeform" blocks like php, html+bbc or scriptblocks, you can set the font in the block itself. With the premade blocks, there's a little more to it. You have a choice, really. You can alter the TPortalBlocks.template.php file to change the size of the fonts, or you can copy the code for those blocks into a php block and set the font size within the code.

I'll take a closer look at the code in the meantime to see what needs to be changed or copied.
Title: Re: Resize text in certain blocks
Post by: sanax on December 23, 2006, 06:01:14 AM
Thanks JP
Title: Re: Resize text in certain blocks
Post by: JPDeni on December 23, 2006, 04:14:41 PM
Which do you want? Do you want to alter the files or do you want to copy the code into blocks? Your decision will tell me which way to go. Personally, I think it's better to copy the code into php blocks and leave the TP files alone, but you may prefer to go the other way.
Title: Re: Resize text in certain blocks
Post by: sanax on December 23, 2006, 05:30:06 PM
Settings > Frontpage > I'm using layout B > What to show on front page: 'Both forum and articles - sorted on date is checked

I won't be able to place the code in blocks because I don't use html or php blocks. The software creates 'summary' blocks on the front page...

Seems to me I'll have to add code to the php files.

Title: Re: Resize text in certain blocks
Post by: JPDeni on December 23, 2006, 05:44:48 PM
Can I get a link to your front page so I can see exactly what you're doing?