{"id":5020,"date":"2016-12-25T18:36:52","date_gmt":"2016-12-25T23:36:52","guid":{"rendered":"https:\/\/enchantedfamily.com\/?page_id=5020"},"modified":"2019-03-02T03:26:40","modified_gmt":"2019-03-02T03:26:40","slug":"how-i-made-my-tng-wp-website","status":"publish","type":"page","link":"https:\/\/ladykathleen.com\/family\/how-i-made-my-tng-wp-website\/","title":{"rendered":"How I made my TNG-WP Website"},"content":{"rendered":"<p>&nbsp;<\/p>\n<h5>Building a Genealogy website with TNG&nbsp;and&nbsp;Wordpress<\/h5>\n<h5>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; with no plugin and keeping the TNG Template Style<\/h5>\n<p><strong>TNG<\/strong> =&nbsp;<strong><em><a href=\"http:\/\/lythgoes.net\/genealogy\/software.php\">The Next Generation of Genealogy Sitebuilding<\/a><sup>\u00a9<\/sup><\/em> (&#8220;TNG&#8221;)<\/strong> is a powerful way to manage and display your family tree <u>on your own website<\/u>, all without generating any static HTML. Instead, your information is stored in a database and the pages are created on demand. All you need is a website and TNG!<\/p>\n<h2>How&nbsp;I combined my TNG and WordPress<\/h2>\n<ul>\n<li><strong><strong>&nbsp;Install WordPress in the root folder of the&nbsp;website &#8211; <\/strong><\/strong><em>I used a theme called &#8220;Emotions Lite&#8221; &nbsp;the first time, but any theme with sections for headers and footers will work.<\/em><\/li>\n<li><strong>&nbsp;Install TNG in a sub-root folder. Any name will do. <\/strong><em>I used Template 12 for my website<\/em><\/li>\n<li>&#8212;&#8212;&#8211; NOTE: In my setup TNG and WordPress share the same database which loads faster. They can&nbsp;be in two separate databases.<\/li>\n<li><strong>In the&nbsp;FPT program make a copy of the TNG template directory you like the best renaming it to something you prefer. &nbsp;Any name works &nbsp;<\/strong>\n<ul>\n<li>NOTE: This way when you update your files do not get over written.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Make 3 files in your TNG Template folder \u2014&gt;<\/strong>\n<ul>\n<li>&nbsp;WP-TNG-topmenu.php\n<ul>\n<li><span style=\"color: #800080;\">&lt;code&gt; &nbsp;&lt;?php &nbsp;<strong>require (&#8220;..\/wp-load.php&#8221;); &nbsp;<\/strong><strong>get_header (); &nbsp;<\/strong><strong>&nbsp;<\/strong><strong>?&gt;&lt;\/code&gt;<\/strong><\/span><\/li>\n<\/ul>\n<\/li>\n<li>&nbsp;WP-TNG-footer.php\n<ul>\n<li><span style=\"color: #800080;\">&lt;code&gt; &nbsp;<strong>&lt;?php &nbsp;<strong>get_sidebar (); &nbsp;<\/strong><\/strong>&nbsp;<strong>get_footer ();&nbsp;<\/strong><strong>?&gt; &lt;\/code&gt;<\/strong><\/span><\/li>\n<li>or&nbsp;<span style=\"color: #800080;\">&lt;code&gt; &nbsp;<strong>&lt;?php &nbsp;<\/strong><strong>get_footer ();&nbsp;<\/strong><strong>?&gt; &lt;\/code&gt; &nbsp; <\/strong>(this one does not use the sidebar)<\/span><\/li>\n<\/ul>\n<\/li>\n<li>&nbsp;WP-TNG-meta.php\n<ul>\n<li><span style=\"color: #800080;\">&lt;code&gt; &nbsp;<strong>&lt;?php &nbsp;&nbsp;<\/strong><strong>global $cms; &nbsp;?&gt; &nbsp;<\/strong><strong>&lt;link href=&#8221;&lt;?php echo $cms[&#8216;tngpath&#8217;]; ?&gt; &nbsp;<\/strong><strong>css\/mytngstyle.css&#8221; rel=&#8221;stylesheet&#8221; type=&#8221;text\/css&#8221;\/<\/strong>&gt; &nbsp;&lt;\/code&gt;<\/span>&nbsp;\n<ul>\n<li>NOTE:&nbsp;<em>code lines are&nbsp;optional, but will help in future stylings.<\/em><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>In Admin&gt;&gt; Setup &gt;&gt; Configuration &gt;&gt; General Settings&gt;&gt; Site Design and Definition &gt; edit fields under custom header, footer &amp; meta use the files names from above.<\/li>\n<li>&nbsp;In Admin&gt;&gt; Setup &gt;&gt; Configuration &gt;&gt; Template Settings &gt;&gt; Selection your NEW&nbsp;Template.<\/li>\n<li>add as many links to the TNG pages in your WP menus.<\/li>\n<\/ul>\n<h3><strong>Notes: <\/strong><\/h3>\n<ul>\n<li>WP &amp; TNG have separate logins. &nbsp;(I do not allow users for my WP, except for myself)<\/li>\n<li>No&nbsp;change to the&nbsp;core file\u2019s of TNG. (just added Template Directory)<\/li>\n<li>No&nbsp;change to the&nbsp;core file\u2019s of WordPress and TNG.<\/li>\n<li>Displays TNG within WordPress with no iFrames.<\/li>\n<li>WP themes can override the <abbr title=\"The Next Generation of Genealogy Sitebuilding\">TNG<\/abbr> so picking a theme that does the least changes in the content section is best.&nbsp;The&nbsp;theme called \u201cEmotions Lite\u201d the Underlining links is gone in <abbr title=\"The Next Generation of Genealogy Sitebuilding\">TNG<\/abbr>&nbsp;and some charts have a miss-a-line issue.&nbsp;<\/li>\n<li>I have many times, changed the WP theme to a less fancy (less style options) theme and the charts did not have a miss-a-line issue so pick your theme carefully but this method seems to work with many free themes.<\/li>\n<\/ul>\n<p>Note in Styles: Some WP Themes can give conflicts to the pedigree layout. In the theme I used called \u201cEmotions Lite\u201d the wording\/boxes in the pedigree were not lining up. I added the code below into the WP custom css which did not make it perfect but did make it a lot better.<\/p>\n<p style=\"padding-left: 30px;\"><span style=\"color: #800080;\"><strong>table {<br \/>\nmargin: -5px 0 0 0;<br \/>\nwidth: 100%;<br \/>\n}<\/strong><\/span><\/p>\n<p>In another theme &#8220;Longevity&#8221; it had less issues for the pedagree layout but was still had an issue. John Paulding pointed it out and suggested this change (in the TNG Custom css) which should help a lot of differant Themes that would have the same issue.<\/p>\n<dl>\n<dd>\n<dl>\n<dd>\n<div class=\"mw-geshi mw-code mw-content-ltr\" dir=\"ltr\">\n<div class=\"php source-php\"><strong><span style=\"color: #800080;\"><span class=\"sy0\">.<\/span>pboxname <span class=\"br0\">{<\/span><\/span><\/strong><br \/>\n<strong><span style=\"color: #800080;\">line<span class=\"sy0\">&#8211;<\/span>height<span class=\"sy0\">:<\/span> <span class=\"nu19\">1.25<\/span> <span class=\"sy0\">!<\/span>important<span class=\"sy0\">;<\/span> &nbsp; <\/span><\/strong><br \/>\n<strong><span class=\"br0\" style=\"color: #800080;\">}<\/span><\/strong><\/div>\n<\/div>\n<\/dd>\n<\/dl>\n<\/dd>\n<\/dl>\n<p>Most WP themes remove underlining in the links and use Hovering instead.<br \/>\nto put the underline back (which will add it to both WP and TNG areas) with the code below added to your WP Theme Custom CSS<\/p>\n<p style=\"padding-left: 30px;\"><span style=\"color: #800080;\"><strong>a:link {<br \/>\ntext-decoration: underline;<br \/>\n}<\/strong><\/span><\/p>\n<p>On some theme like &#8220;Longevity&#8221; the pop up register window was cut off short. (people could not see the REGISTER line)<br \/>\nI could add this to my WP theme Custom CSS , to help.<\/p>\n<p style=\"padding-left: 30px;\"><strong><span style=\"color: #800080;\">.LB_window {<\/span><\/strong><br \/>\n<strong><span style=\"color: #800080;\"> padding-top: 10px; !important<\/span><\/strong><br \/>\n<strong><span style=\"color: #800080;\">}<\/span><\/strong><\/p>\n<p>Remember with WP themes sometimes Less is More.<br \/>\n<em><strong>I purpose of this page is not only to help others with WP\/TNG integrations but to keep a record of what I &#8220;DID&#8221; when updates happen to WP or TNG.<\/strong><\/em><br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Building a Genealogy website with TNG&nbsp;and&nbsp;Wordpress &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; with no plugin and keeping the TNG Template Style TNG =&nbsp;The Next Generation of Genealogy Sitebuilding\u00a9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":[],"rop_publish_now_history":[],"rop_publish_now_status":"pending","jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-5020","page","type-page","status-publish","hentry"],"jetpack_shortlink":"https:\/\/wp.me\/PaLyqU-1iY","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ladykathleen.com\/family\/wp-json\/wp\/v2\/pages\/5020","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ladykathleen.com\/family\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ladykathleen.com\/family\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ladykathleen.com\/family\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ladykathleen.com\/family\/wp-json\/wp\/v2\/comments?post=5020"}],"version-history":[{"count":0,"href":"https:\/\/ladykathleen.com\/family\/wp-json\/wp\/v2\/pages\/5020\/revisions"}],"wp:attachment":[{"href":"https:\/\/ladykathleen.com\/family\/wp-json\/wp\/v2\/media?parent=5020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}