Jump to content
TNG Community

Some questions on TNG integration:


omarquet

Recommended Posts

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

 

Link to comment
Share on other sites

HeatherFeuer

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 months later...
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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...