Title: Changing Font Size using Insert PHP
Last modified: August 21, 2016

---

# Changing Font Size using Insert PHP

 *  Resolved [LesTexas60](https://wordpress.org/support/users/lestexas60/)
 * (@lestexas60)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/changing-font-size-using-insert-php/)
 * I am using the code below:
 * [insert_php]
    $a= htmlspecialchars($_GET[“SendTo”]); echo “<p> <font size=4 color
   =Blue >$a</font></p>”; [/insert_php]
 * The variable prints corectly, the color is correct but no matter what I change
   the “Size” to, it stays the same.
 * Any ideas would be appreciated.
 * [http://wordpress.org/plugins/insert-php/](http://wordpress.org/plugins/insert-php/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/changing-font-size-using-insert-php/#post-4568703)
 * The `<font>` tag has been depricated and while it still works, it shouldn’t be
   relied upon for anything that you’re doing in the future. Because of this there’s
   a good chacne that the browser is not considering this tag and the very old ways
   that you’re applying the styles to it. I’d guarantee that the CSS Styles set 
   for the `<p>` tag are over-riding anything that you’re placing in the font tag.
 * If you want to do it the “correct” way, add an inline style declaration to the`
   <p>` tag directly:
 * `echo "<p style='font-size=12px; color=#0000FF;'>$a</p>";`
 *  Thread Starter [LesTexas60](https://wordpress.org/support/users/lestexas60/)
 * (@lestexas60)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/changing-font-size-using-insert-php/#post-4568704)
 * Thanks Cat.. I think your right about the Style over riding my entries. I added
   the code you provided to my PHP Input and the color wasn’t even recognized like
   the other code line. This is one of the main obstacles in Joomla and WordPress,
   the templates Rule and it’s very difficult to make exceptions to their rules.
 * If I didn’t enter this as you suggested, excuse my lack of coding experience.
   One of the main reason I and I think many others move towards WordPress type 
   web software is because coding is not suppose to be required. While technically
   this is true, coding is necessary when Plugins are not available or if you want
   to customize features.
    Thank you for the help.
 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/changing-font-size-using-insert-php/#post-4568833)
 * LesTexas60, try colon characters instead of equal characters.
 * `echo "<p style='font-size:12px; color:#0000FF;'>$a</p>";`
 * Will

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Changing Font Size using Insert PHP’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/changing-font-size-using-insert-php/#post-4568833)
 * Status: resolved