Linking a script in a WordPress theme



Similar documents
How to pull content from the PMP into Core Publisher

WEBSITE CONTENT MANAGEMENT SYSTEM USER MANUAL CMS Version 2.0 CMS Manual Version

ANIMATED HEADER IMAGE WITH IMAGE HEADER SLIDESHOW (FL_HEADER_SLIDE)

Getting Started Guide

How to Add Social Media Icons to Your Website

Smiths Medical Online Portal User Guide

Elementary Website Management December 2013

Support Documentation

Introduction to Drupal

Terminal Four. Content Management System. Moderator Access

Help File. Version February, MetaDigger for PC

How To Insert Hyperlinks In Powerpoint Powerpoint

Sign in. Select Search Committee View

EDITOR & SITE TAGS

Table of Contents. How to Disable or Partially Disable Pop-up Blockers

Introduction. Inserting Hyperlinks. PowerPoint 2010 Hyperlinks and Action Buttons. About Hyperlinks. Page 1

Instructions for creating a data entry form in Microsoft Excel

Word 2010: Mail Merge to with Attachments

Tutorial on Getting Started. Section 1 Getting started All users read this section 2

Using the free iweb webpage templates

Streaming Media System Requirements and Troubleshooting Assistance

Mojo Matrix Training Guide

Gravity Forms: Creating a Form

Automate tasks with Visual Basic macros

NJCU WEBSITE TRAINING MANUAL

Content Management System QUICK START GUIDE

Creating a Hyperlink to a Tegrity Recording

Create s using imodules

How to Create a WordPress web site at

Frog VLE Update. Latest Features and Enhancements. September 2014

Administrator's Guide

Creating a Storyboard using Microsoft Word

NDSU Technology Learning & Media Center. Introduction to Google Sites

Dreamweaver Tutorials Creating a Web Contact Form

Hermes.Net Web Campaign Page 2 26

Adobe Dreamweaver - Basic Web Page Tutorial

Web Ambassador Training on the CMS

Aspect WordPress Theme

How to Enable the Persistent Player

ETHICS ONLINE TRAINING INFORMATION AND TIPS

MnSCU MediaSpace. Getting Started with MediaSpace

Viewing.wmv. Setup your computer to watch.wmv files online

BreezingForms Guide. 18 Forms: BreezingForms

XCloner Official User Manual

Joomla! 2.5.x Training Manual

Browser Settings for Optimal Site Performance

Google Sites: Site Creation and Home Page Design

Why Use OneNote? Creating a New Notebook

Additional information >>> HERE <<< Online Book Premium WordPress Plugin Developer - Plugin Dynamo

Beginner s Guide to AIA Contract Documents Online Service for Single-Seat Users

Administrator s Guide

Preparing Documents in the STARS Database

Chapter 1: Introduction

If you have any questions or problems along the way, please don't hesitate to call, , or drop in to see us. We'd be happy to help you.

Order Tracking Tips and Techniques

.ME. Web Admin Tool User Manual. for Registrars. Copyright 2011 Afilias Limited

ClickView Digital Signage User Manual

Database Forms and Reports Tutorial

How To Watch An Exchange Ediscovery Video On A Computer Or Phone Or Ipad Or Ipa Or Ipo Or Ipom Or Ipor Or Ipro Or Ipode Or Ipod Or Ipore Or Ipob Or Ipoo Or Ipos

Using the Advanced Tier Data Collection Tool. A Troubleshooting Guide

Advanced Presentation Features and Animation

Tutorial: Using Get Response to Add an Opt-In Box to Your WordPress Site

Microsoft Word 2013 Tutorial

Getting Started using the SQuirreL SQL Client

Excel 2010 Sorting and Filtering

25LIVE REFERENCE GUIDE

IBM Emptoris Contract Management. Release Notes. Version GI

Company Setup 401k Tab

Computer Training Centre University College Cork. Excel 2013 Pivot Tables

collab.virginia.edu UVACOLLAB ECLPS: BUILDING COURSE PORTALS UVaCollab User Guide Series

One of the fundamental kinds of Web sites that SharePoint 2010 allows

WebPlus X7. Quick Start Guide. Simple steps for designing your site and getting it online.

VAST . How to Register and Login to Your Vast Account. Selecting address and password

MAGENTO THEME SHOE STORE

Purple Mash Shared Folders

UH CMS Basics. Cascade CMS Basics Class. UH CMS Basics Updated: June,2011! Page 1

Managing your Joomla! 3 Content Management System (CMS) Website Websites For Small Business

Document Revision Date: August 14, Create a New Data Protection Policy in the Symantec.cloud Management Portal

Website Editor User Guide

Packages Opening the Package Maintenance Form Adding a New Package Edit Package Item Details Form... 11

Adding Links to Resources

paragraph(s). The bottom mark is for all following lines in that paragraph. The rectangle below the marks moves both marks at the same time.

Elavon Payments App. Revolutionising digital interaction.

Wellesley College Alumnae Association. Volunteer Instructions for Template

Quick Start Guide. Installation and Setup

Adobe Dreamweaver Student Organizations Publishing Details Getting Started Basic Web Page Tutorial For Student Organizations at Dickinson College *

Add page numbers and headers and footers by using the gallery, or create a custom page number, header, or footer.

Tutorial 5: Add-to-Cart Button

Creating a Newsletter with Microsoft Word

Technical Support Set-up Procedure

State of Nevada. Ektron Content Management System (CMS) Basic Training Guide

Contents. Dianne Harrison Ferro Mesarch

This guide provides additional information about topics covered in the webinar

Joomla! template Blendvision v 1.0 Customization Manual

Transcription:

Linking a script in a WordPress theme Linking a script in a WordPress theme - page 1/6

Sometimes you have to add a script into the header of your pages, especially when working players like JW player from Longtailvideo. In this tutorial you will learn how to do that in WordPress 3.x Consider this line of code: <script type='text/javascript' src='http://www.yourdomain.com/mediaplayer/jwplayer.js'></script> This calls a javascript located in http://www.yourdomain.com/mediaplayer/ In order to place this line of code in the header of your pages, you need to do the following: In the admin section on the left, you will find a tab called Appearance: Click on that and it will show a range of options. Select Editor. This opens the page that lists all the files concerning your current theme in the right hand column: There you need to find a file called header.php. The name might vary depending on the theme. It could be head.php as well, but it normally should show up directly under the word Header, if the theme creator followed the rules set forth by WordPress.org. When you found it, click on the link. This will open the code editor and it is there that we are going to place our line of code. Linking a script in a WordPress theme - page 2/6

The content in the editor will depend on the theme, so we are going to look for something that is common in all themes, namely: </title> If you copy that piece of code above, then we are going to use that to do a search in the editor: If you click Control + F on Windows or Command + F on Mac, you get, depending on your browser, either a search field at the bottom of the window or a dialog box. With Firefox, that looks like this at the bottom: With IExplorer you get this at the top: Linking a script in a WordPress theme - page 3/6

In either case, first click with your mouse anywhere in the editor to make sure the focus is on your header page. Then paste </title> in the search box and click on Next. The editor will jump to that piece of code, or in this case the end tag of Title and it will in fact highlight it. Directly after that tag we are going to insert an empty line. Place your cursor on the right of </title> and press by ENTER. You get something like this now: Now copy the line of code that links to the javascript: <script type='text/javascript' src='http://www.yourdomain.com/mediaplayer/jwplayer.js'></script> and paste it on the empty line: Linking a script in a WordPress theme - page 4/6

And now we can save the header page. Scroll down until you see a button called Update File:. Click on that button and you are done. The javascript file is successfully linked to via the header.php in all your posts and pages. This means, that all pages and posts can make use of the functionality offered by that javascipt file. If it doesn't work, you may have to check the path to the file ( represented in red ): <script type='text/javascript' src='http://www.yourdomain.com/mediaplayer/jwplayer.js'></script> We hope you found this useful. You can use this technique for other CMS as well, like Joomla, Drupal and others, but they have another structure. It's a question of finding out where the header section is located. With Joomla this is directly in the index.php of the theme. Linking a script in a WordPress theme - page 5/6

This tutorial is presented to you by www.miracletutorials.com, the site that teaches you everything related to video and audio on the web. Linking a script in a WordPress theme - page 6/6