{"id":5681,"date":"2017-01-10T12:53:48","date_gmt":"2017-01-10T17:53:48","guid":{"rendered":"https:\/\/enchantedfamily.com\/?page_id=5681"},"modified":"2019-03-02T03:27:12","modified_gmt":"2019-03-02T03:27:12","slug":"how-i-made-my-tng-wp-website-part-2","status":"publish","type":"page","link":"https:\/\/ladykathleen.com\/family\/how-i-made-my-tng-wp-website-part-2\/","title":{"rendered":"How I made my TNG-WP Website Part 2"},"content":{"rendered":"<p>&nbsp;<\/p>\n<h2>It was brought up that the method in Part 1 was&nbsp;having 2 duplicated tags:<\/h2>\n<h4>The tags are the title, head,<strong>&nbsp;<\/strong>body and html tags.<\/h4>\n<p>&nbsp;<br \/>\nThis is how I fixed that without too much disturbing WP or TNG code. &nbsp;I also wanted to keep the website running with very little disruptions.<br \/>\n&nbsp;(* Special Note: These changes would need to be made each time you change or update your WP theme. &nbsp;If you like changing your theme often and do not mind a possible seo hit with the search engines then suggestion not making these changes.)<br \/>\nFirst I copied the WP theme file called footer.php and named it footer-tng.php and removed the 2 lines at the end (&lt;\/body&gt; and &lt;\/html&gt;)&nbsp;<br \/>\nThen in the file above called&nbsp;WP-TNG-footer.php I changed the code: &nbsp;get_footer (); to&nbsp;get_footer (&#8216;tng&#8217;); &nbsp;This makes the system load the&nbsp;footer-tng.php file instead of the&nbsp;footer.php.<br \/>\n<strong>That part above was the easy part.<\/strong>&nbsp; &nbsp;The website still looks and works fine.<br \/>\nNow&nbsp;I copied the WP theme file called header.php and named it header-tng.php and removed the lines between &lt;!DOCTYPE and &lt;\/head&gt; but Not the line &lt;?php wp_head(); ?&gt;<br \/>\nNote: My theme &#8220;Longevity&#8221; had a preloader so I needed to keep that where it was for the theme to display correctly.<br \/>\nNext I coped the TNG Theme file called&nbsp;WP-TNG-topmmenu.php and named it&nbsp;WP-TNG2-topmenu.php<br \/>\n(You could make the changes directly to the original file, but I did this so I could easily pop things back if something goes wrong and also it you want to change themes you can revert until you fix up the new theme files) &nbsp;(<strong>Rememeber not all themes are created equal<\/strong>)<br \/>\nI changed the code: &nbsp;get_header (); to&nbsp;get_header (&#8216;tng&#8217;); &nbsp;This makes the system load the header-tng.php file instead of the header.php.<br \/>\nNext I coped the TNG Theme file called&nbsp;WP-TNG-meta.php and named it&nbsp;WP-TNG2-meta.php<br \/>\nIn this file I copied the meta and link lines that were deleted from the WP header-tng.php file. &nbsp;(if you did not save the line just go back to you original header.php file.)<br \/>\n<strong>Now to activate the Header part<\/strong> you just need to go to TNG Admin and<\/p>\n<ul>\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 use the file names WP-TNG2-topmenu.php &amp; WP-TNG2-meta.php &nbsp;<\/li>\n<li>Do not close this page until you double checked that your website is looking correct, because you can easily change back to&nbsp;WP-TNG-topmenu.php and&nbsp;WP-TNG-meta.php if something goes wrong.<\/li>\n<\/ul>\n<p>Now this take care of the&nbsp; head,<strong>&nbsp;<\/strong>body and html tags, but not the title tag.<br \/>\nThe title tage may not be that important as the &#8220;Correct title&#8221; is now the first one, but so not to confuse search engines I still would like to remove the 2nd title tag.<br \/>\n&nbsp;I will be working on the title issue next.<br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; It was brought up that the method in Part 1 was&nbsp;having 2 duplicated tags: The tags are the title, head,&nbsp;body and html tags. &nbsp; This is how I fixed that without too much disturbing WP or TNG code. &nbsp;I also wanted to keep the website running with very little disruptions. &nbsp;(* Special Note: These [&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-5681","page","type-page","status-publish","hentry"],"jetpack_shortlink":"https:\/\/wp.me\/PaLyqU-1tD","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ladykathleen.com\/family\/wp-json\/wp\/v2\/pages\/5681","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=5681"}],"version-history":[{"count":0,"href":"https:\/\/ladykathleen.com\/family\/wp-json\/wp\/v2\/pages\/5681\/revisions"}],"wp:attachment":[{"href":"https:\/\/ladykathleen.com\/family\/wp-json\/wp\/v2\/media?parent=5681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}