omarquet Posted January 3, 2024 Report Share Posted January 3, 2024 Hello, I am setting up my Wordpress-Tng integration, acording to the recommendations of @klooster and I have some questions: - How can I limit the width of my TNG pages ? I noticed that some wordpress themes spread out the TNG pages on the full width, while some others keep it neatly in a "box". And I want my TNG pages in a box. Not like it is now: https://neptis.be/tng/getperson.php?personID=I193&tree=tree13 I guess some additional CSS is required, but what are the required settings ? - In the Kloosterman Wordpress integration, TNG does not use a theme. But apparently there is a default TNG theme (light and dark blue) that is used in the TNG pages in Wordpress. Where in TNG are these colours defined ? - When you use the media files integration through symbolic links, do you upload the pictures to the symbolic links (in the TNG directory) or to the wordpress directories ? - And last question: what is the added value of using a common database for Wordpress and TNG. Does it really speed up the loading of pages ? Thank you in advance, Olivier Quote Link to comment Share on other sites More sharing options...
HeatherFeuer Posted January 3, 2024 Report Share Posted January 3, 2024 Hi Olivier, On my sites, the WPTNG-topmenu.php has the following code: <?php include("../wp-load.php"); get_header(); ?> <div style="width: 80%; margin: 2em auto 0 auto;"> The WPTNG-footer.php has the following code: <!-- End TNG page build Div Container--> </div> <?php get_footer(); ?> The extra <div ...> in the topmenu and </div> in the footer allow the TNG contents to display nicely centered and contained. Hope that helps Quote Link to comment Share on other sites More sharing options...
omarquet Posted January 4, 2024 Author Report Share Posted January 4, 2024 23 hours ago, HeatherFeuer said: Hi Olivier, On my sites, the WPTNG-topmenu.php has the following code: <?php include("../wp-load.php"); get_header(); ?> <div style="width: 80%; margin: 2em auto 0 auto;"> The WPTNG-footer.php has the following code: <!-- End TNG page build Div Container--> </div> <?php get_footer(); ?> The extra <div ...> in the topmenu and </div> in the footer allow the TNG contents to display nicely centered and contained. Hope that helps Thank you very much for your advice. I will try it out. Quote Link to comment Share on other sites More sharing options...
Hugh Byrne Posted March 19, 2024 Report Share Posted March 19, 2024 On 1/3/2024 at 8:21 AM, HeatherFeuer said: The extra <div ...> in the topmenu and </div> in the footer allow the TNG contents to display nicely centered and contained. Hope that helps Just wanted to offer belated thanks to @HeatherFeuer for this little tip, which helped me quickly resolve an issue I'd been struggling with in recent days. Simple, but very helpful! Quote Link to comment Share on other sites More sharing options...
HeatherFeuer Posted March 19, 2024 Report Share Posted March 19, 2024 @Hugh Byrne, you are most welcome! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.