This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('wp_head', 'schema_wp_head'); | |
function schema_wp_head(){ | |
$schema = get_post_meta(get_the_ID(), 'schema', true); | |
if(!empty($schema)) { | |
echo $schema; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add GA Content Experiments Scripts Here | |
*/ | |
function content_experiments_head_script() { | |
// Replace '2' with the post/page ID of the original version of the page you are testing | |
if(is_page(2)) { ?> | |
<!-- Load the Content Experiment JavaScript API client for the experiment --> | |
<script src="//www.google-analytics.com/cx/api.js?experiment=YOUR_EXPERIMENT_ID"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add GA Content Experiments Scripts Here | |
*/ | |
function content_experiments_head_script() { | |
// Replace '2' with the post/page ID of the original version of the page you are testing | |
if(is_page(2)) { ?> | |
<!-- Load the Content Experiment JavaScript API client for the experiment --> | |
<script src="//www.google-analytics.com/cx/api.js?experiment=YOUR_EXPERIMENT_ID"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add GA Content Experiments Scripts Here | |
*/ | |
function content_experiments_head_script() { | |
if(is_page(2)) { ?> | |
<?php } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Load the Content Experiment JavaScript API client for the experiment --> | |
<script src="//www.google-analytics.com/cx/api.js?experiment=YOUR_EXPERIMENT_ID"></script> | |
<script> | |
// Ask Google Analytics which variation to show the user. | |
var chosenVariation = cxApi.chooseVariation(); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="application/ld+json"> | |
{ | |
"@context": "http://schema.org", | |
"@type": "VideoObject", | |
"name": "Why Super Shop is Great", | |
"description": "Find out why Super Shop is great and all of our products are super!", | |
"thumbnailUrl": "http://www.example.com/thumbnail.jpg", | |
"uploadDate": "2016-06-05T08:00:00+08:00", | |
"duration": "PT1M33S", | |
"contentUrl": "http://www.example.com/supershop.flv", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="application/ld+json"> | |
{ | |
"@context": "http://schema.org/", | |
"@type": "Product", | |
"name": "Super Hat", | |
"image": "http://www.example.com/super-hat.jpg", | |
"description": "The best super hat ever from Super Shop.", | |
"mpn": "456321", | |
"brand": { | |
"@type": "Thing", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="application/ld+json"> | |
{ | |
"@context": "http://schema.org", | |
"@type": "VideoObject", | |
"name": "Why Super Shop is Great", | |
"description": "Find out why Super Shop is great and all of our products are super!", | |
"thumbnailUrl": "http://www.example.com/thumbnail.jpg", | |
"uploadDate": "2016-06-05T08:00:00+08:00", | |
"duration": "PT1M33S", | |
"contentUrl": "http://www.example.com/supershop.flv", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$schema = get_post_meta(get_the_ID(), 'schema', true); | |
if(!empty($schema)) { | |
echo $schema; | |
} | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="application/ld+json"> | |
{ | |
"@context": "http://schema.org", | |
"@type": "LocalBusiness", | |
"address": { | |
"@type": "PostalAddress", | |
"addressLocality": "Example Town", | |
"addressRegion": "Essex", | |
"streetAddress": "123 Example Street" | |
}, |
NewerOlder