You found:
Syndicated Content Use Instructions
Syndicated Content Use Instructions
Truth For Life is providing you with a bit of HTML code which will retrieve valuable content from truthforlife.org and display it in one or more pages on your personal, organization, or corporate web site.
To make the HTML code work properly, you should have also received an account id from Truth For Life when you registered on truthforlife.org to received the syndicated content. If you have not received that id, or have misplaced it, please email [email protected], giving us the full name and domain or web site name you used when you registered. We can then retrieve that account id and send it to you.
Here are unstyled examples of each type of syndicated content:
- Daily Devotional by C. H. Spurgeon
- Alistair Begg Devotional
- Daily Program with Alistair Begg
- One-Year Bible Reading Plan
- Truth For Life resources search form
- Truth For Life Daily Devotions (Audio)
- Truth For Life Resource Ads
Here is the HTML code you can insert into to a web page on your site to retrieve that syndicated content (note that each code snippet is slightly different):
Spurgeon Devotional:
<script id="syn_script"
src="https://www.truthforlife.org/static/js/responsive/lib/syndicate.js?type=devotional&id=XXXXXX"
type="text/javascript"></script>
<div id="tfl-syndicate-container"></div>
Alistair Begg Devotional:
<script id="syn_script"
src="https://www.truthforlife.org/static/js/responsive/lib/syndicate.js?type=abdevotional&id=XXXXXX"
type="text/javascript"></script>
<div id="tfl-syndicate-container"></div>
Truth For Life Daily Devotions (Audio):
<script id="syn_script"
src="https://www.truthforlife.org/static/js/responsive/lib/syndicate.js?type=audiodevo&id=XXXXXX"
type="text/javascript"></script>
<div id="tfl-syndicate-container"></div>
<script id="syn_script"
src="https://www.truthforlife.org/static/js/responsive/lib/syndicate.js?type=broadcast&id=XXXXXX"
type="text/javascript"></script>
<div id="tfl-syndicate-container"></div>
<script id="syn_script"
src="https://www.truthforlife.org/static/js/responsive/lib/syndicate.js?type=biblereading&id=XXXXXX"
type="text/javascript"></script>
<div id="tfl-syndicate-container"></div>
<script id="syn_script"
src="https://www.truthforlife.org/static/js/responsive/lib/syndicate.js?type=search&id=XXXXXX"
type="text/javascript"></script>
<div id="tfl-syndicate-container"></div>
<script id="syn_script"
src="https://www.truthforlife.org/static/js/responsive/lib/syndicate.js?type=resourcead&id=XXXXXX"
type="text/javascript"></script>
<div id="tfl-syndicate-container"></div>
Note: You should replace the XXXXXX in each example with the account id you received from Truth For Life. Then the code will be ready for inserting into a page on your web site.
We know you’ll have questions, so here are a few we are anticipating:
1. “Where exactly do I put the HTML code in my web page?”
Answer: Exactly where you want it to appear in your web page layout. The <script></script> tag can be placed just before the <div></div> tag, or it can be placed within the <head></head> of your web page. But the <div></div> tag itself will hold the content retrieved from truthforlife.org, so it must be placed exactly where you want that content to appear in your web page.
2. “Can I put all the code snippets on the same web page?”
Answer: No, each code snippet should be placed a separate web page.
3. “Can I restyle the look of the syndicated content to better match the styles on my web site?”
Answer: Certainly. When you add the HTML code to your web page that code will create a link to some default CSS styles just inside the close of the <head></head> tag on your page. Those default styles are used in the retrieved content. You can see those default styles here:
https://www.truthforlife.org/static/css/responsive/syndicate.css
You can override those default CSS styles by including identical CSS classes of your own AFTER the </head> tag closes in your web page. You might include them using a <link> tag to your external CSS file, or you might embed your classes within a <style></style> tag in your web page. Either way, your identical CSS styles must appear in the page AFTER the syndicated content’s CSS appears just before the <head> tag closes in your page.
4. “Can I remove parts of the syndicated content to make it fit better within the layout of my web page?”
Answer: One of the Terms and Conditions you agreed to when registering for a syndicated content account was that you would not modify, remove, or make invisible any of the content itself. (You may alter the style of the content, however.) So the content as a whole must remain intact with no deletions. But we realize there may be some situations that require an exception, so please email [email protected] and tell us about your situation and why you need an exception to this policy. Also in that email, please include a URL to the web page in question on your site and your syndicated content account id.
5. “I notice a short pause after my web page loads before the syndicated content loads into my page. Is that normal?”
Answer: Yes, it is normal, but we hope that pause is very short. The syndicated content is set to load into your web page after your page has completely loaded otherwise. This loading sequence prevents other possible problems within your web page, so the slight delay is a small trade-off for that prevention.
6. “The syndicated content is not displaying on my web page after I’ve added the HTML code you gave me. I’m seeing either nothing at all, or a message like ‘That account does not exist or is not active.’ Can you help?”
Answer: We’d be glad to help. Just email us at [email protected] and include the full name used when you registered for your account, along with your account id and the URL of the page in question on your web site.
7. “The syndicated content is not displaying on my web page after I’ve added the HTML code you gave me. I’m seeing a message ‘Cannot be viewed in this domain.’ Can you help?”
Answer: You may be trying to display the syndicated content in a web site other than the web site or URL you submitted to us when you registered for your content account. Just email us at [email protected] and include the full name used when you registered for your account, along with your account id and the URL of the page in question on your web site.
Finally, thanks again for including content from truthforlife.org within your web site. We know that the quality content we provide free of charge will be a welcomed addition to your own site, and in turn that it will inspire and encourage your site’s visitors.