Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Kootch on November 22, 2018, 04:55:33 PM

Title: SSI.php fonts and indents
Post by: Kootch on November 22, 2018, 04:55:33 PM
Ok guys, it's coming along.  Here's where I'm stuck now.  I would like all of my fonts to be the same size in the attached file.  I also wonder how to have the text all indented on the left size 2 or 3 spaces in this WP widget.  Help!

The site is live at https://www.tmlfans.ca/

Rick
Title: Re: SSI.php fonts and indents
Post by: SychO on November 22, 2018, 05:13:00 PM
Adding paddings to the box would be nice, not sure what you mean by same font size, they already have same font sizes


.execphpwidget {
    padding: 15px;
}
Title: Re: SSI.php fonts and indents
Post by: Kootch on November 22, 2018, 05:27:16 PM
Thanks SychO.

I'm still pretty new.  Where would I put this code to make it work for that one WP widget?

Thanks!
Title: Re: SSI.php fonts and indents
Post by: SychO on November 22, 2018, 05:31:26 PM
Well, You could either add it to the CSS file of your WP theme, or add this in the php widget
echo '<style>.execphpwidget {
    padding: 15px;
}</style>';

Title: Re: SSI.php fonts and indents
Post by: Kootch on November 22, 2018, 05:35:18 PM
I tried adding this exactly to the style.css

echo '<style>.execphpwidget {
    padding: 15px;
}</style>';

And it produced an error.

Any other thoughts?  (sorry, newbie questions, I'm sure!)
Title: Re: SSI.php fonts and indents
Post by: SychO on November 22, 2018, 05:46:57 PM
no, I said either add the first code I gave you, to style.css, or the second code I gave you, to the WP php widget you're using
Title: Re: SSI.php fonts and indents
Post by: Kootch on November 22, 2018, 05:56:48 PM
Thanks again SychO!

It's now padded 15px perfectly, but it now adds  echo ''; to the start of the widget.

Here's the code I have in the widget now:

echo '<style>.execphpwidget {
    padding: 15px;
}</style>';
<?php ssi_boardStats(); ?><hr><?php ssi_whosOnline(); ?>
<li>  <a href="https://www.tmlfans.ca/community/">Login/Register/Browse</a>
Title: Re: SSI.php fonts and indents
Post by: Kootch on November 22, 2018, 07:23:06 PM
Found what I needed to change - thanks!

Rick