Jump to content
TNG Community

Add 2nd Home "Button" in header


KevyNC

Recommended Posts

Hopefully someone can help with this. 

I want to add 2nd home button in the header bar when the normal HOME button appears.  The reason for this  is because is I have a custom WordPress integration.  When a TNG page is being displayed I want a home button to return to the TNG Wordpress Page (which is the way it works now), however I also want a TNG Home page button so they do not exit  back to the WordPress site.  I also want to relabel them, and avoid any issues with future updates.  I really prefer both appearing next to each other on the left where the normal home button appears.

 

Link to comment
Share on other sites

Michel KIRSCH

What's the URL of your WP homepage? When clicking on your new button where must the program go?

Michel

Link to comment
Share on other sites

7 hours ago, Michel KIRSCH said:

try this mod : the button returns to your home page...

You can change the destination directly in the cfg file before you install it...

Add_button_WPhome_12.3.0.1.zip

Thanks for sharing

in the code it has 'id'=>"coucou"

If you wanted to add another button, would you change that id as well or is this css.

Thanks

Link to comment
Share on other sites

Michel KIRSCH

A priori, this id has no influence for teh coportment of the button.

But use the second edition of the mod, these with edit option.

Michel

Link to comment
Share on other sites

32 minutes ago, Michel KIRSCH said:

... the comportment...

Hi Michel,

Does that mean behavior or function of the mod?

Link to comment
Share on other sites

Michel KIRSCH

Hi Ron,

Sorry for the comportment. Yes, behaviour.

As long as the button is only used to point to a url defined in the editing options of the Mod.

Sorry, but I don't make tests: It was just to answer to kevyNC, to begin to elaborate a solution.

I think Kevyn's on vacation... :)

Michel

Link to comment
Share on other sites

  • 9 months later...
Michel KIRSCH

You're welcome SarahBeth.

This Mod is unofficial because it is used by only one user.

Now 2 users  !! Great success !!

I'll promote it on the wiki soon...

Michel

Link to comment
Share on other sites

It is wonderful! I have a full site for the family history, much more than just the family tree, and the TNG interface is just one section. It's great to have the option of pointing visitors to the Family Tree home page as well as the real site home page.

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