Jump to content
TNG Community

Heading template 15


roakdah

Recommended Posts

I am guessing that you added the following to your index.php for template15

<div>
    <?php
        include($cms['tngpath'] . "surname_cloud.class.php");
        $nc = new surname_cloud();
        $nc->display(100);
    ?>
</div>

If you add the header after the "<div>" and before the "<?php" it will show as the heading over the surname cloud.  So something like

<div>
	<h2>Surname Cloud Title</h2>
    <?php
        include($cms['tngpath'] . "surname_cloud.class.php");
        $nc = new surname_cloud();
        $nc->display(100);
    ?>
</div>

puts "Surname Cloud Title" above the surname cloud in the style of h2.  If you want the text to be able to switch when you change between English and Norwegian, then you will want to use $text['surname_cloud_title'] that you would set in the cust_text.php for both of the languages and call with something like <h2><?php $text['surname_cloud_title'] ?></h2> in that line.

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...