Advertisement:

Author Topic: SSI.php fonts and indents  (Read 644 times)

Offline Kootch

  • Semi-Newbie
  • *
  • Posts: 43
  • Gender: Male
    • Leafs News & Views
SSI.php fonts and indents
« 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

Online SychO

  • Customizer
  • Sr. Member
  • *
  • Posts: 951
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: SSI.php fonts and indents
« Reply #1 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

Code: [Select]
.execphpwidget {
    padding: 15px;
}

Imazighen

Offline Kootch

  • Semi-Newbie
  • *
  • Posts: 43
  • Gender: Male
    • Leafs News & Views
Re: SSI.php fonts and indents
« Reply #2 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!

Online SychO

  • Customizer
  • Sr. Member
  • *
  • Posts: 951
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: SSI.php fonts and indents
« Reply #3 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
Code: [Select]
echo '<style>.execphpwidget {
    padding: 15px;
}</style>';

Imazighen

Offline Kootch

  • Semi-Newbie
  • *
  • Posts: 43
  • Gender: Male
    • Leafs News & Views
Re: SSI.php fonts and indents
« Reply #4 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!)

Online SychO

  • Customizer
  • Sr. Member
  • *
  • Posts: 951
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: SSI.php fonts and indents
« Reply #5 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

Imazighen

Offline Kootch

  • Semi-Newbie
  • *
  • Posts: 43
  • Gender: Male
    • Leafs News & Views
Re: SSI.php fonts and indents
« Reply #6 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>

Offline Kootch

  • Semi-Newbie
  • *
  • Posts: 43
  • Gender: Male
    • Leafs News & Views
Re: SSI.php fonts and indents
« Reply #7 on: November 22, 2018, 07:23:06 PM »
Found what I needed to change - thanks!

Rick