SSI.php fonts and indents

Started by Kootch, November 22, 2018, 04:55:33 PM

Previous topic - Next topic

Kootch

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

SychO

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;
}
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Kootch

Thanks SychO.

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

Thanks!

SychO

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>';

Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Kootch

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!)

SychO

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
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Kootch

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>

Kootch

Found what I needed to change - thanks!

Rick

Advertisement: