Title: Global variable tempalte based variable
Last modified: August 20, 2016

---

# Global variable tempalte based variable

 *  [littleantz](https://wordpress.org/support/users/littleantz/)
 * (@littleantz)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/global-variable-tempalte-based-variable/)
 * Hi,
 * I have self hosted video player and I frequently change theme.
 * I post my video on the post editor using this code.
 *     ```
       <script type="text/javascript">// <![CDATA[
       player("container").setup({
       	flashplayer: "player.swf",
       	file: "video.flv",
       	autostart: "true",
       	repeat: "always",
       	stretching: "exactfit",
       	height: 350,
       	width: 555
       });
       // ]]></script>
       ```
   
 * My problem is that the video size is not always fit to the themes. What I want
   to do now is to declare a global constant variable that I can use to replace 
   the height and the width value of the above code. This way I can just edit the
   global variable to suit my current theme.
 * Where can I declare a global constant variable that I can use in post editor (
   html).
 * If there is other way to accomplish this, please comment.
 * your help is highly appreciated.
 * Thanks

Viewing 1 replies (of 1 total)

 *  Thread Starter [littleantz](https://wordpress.org/support/users/littleantz/)
 * (@littleantz)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/global-variable-tempalte-based-variable/#post-2103089)
 * got this sorted out…
 * thanks

Viewing 1 replies (of 1 total)

The topic ‘Global variable tempalte based variable’ is closed to new replies.

## Tags

 * [global variable](https://wordpress.org/support/topic-tag/global-variable/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [littleantz](https://wordpress.org/support/users/littleantz/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/global-variable-tempalte-based-variable/#post-2103089)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
