Jump to content
TNG Community
KevyNC

Add 2nd Home "Button" in header

Recommended Posts

KevyNC

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.

 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
Michel KIRSCH

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

Share this post


Link to post
Share on other sites
Michel KIRSCH

The same mod with editing option...

Michel

Add_button_WPhome_12.3.0.1.zip

Share this post


Link to post
Share on other sites
Michel KIRSCH

??

Share this post


Link to post
Share on other sites
Shazzam
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
Michel KIRSCH

... the comportment...

Share this post


Link to post
Share on other sites
tngrlkrz
32 minutes ago, Michel KIRSCH said:

... the comportment...

Hi Michel,

Does that mean behavior or function of the mod?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
Michel KIRSCH

Once again, this is the mod with the edit option.

Michel

Add_button_WPhome_12.3.0.1.zip

Share this post


Link to post
Share on other sites
SarahBeth
On 6/8/2020 at 11:42 AM, Michel KIRSCH said:

Once again, this is the mod with the edit option.

Michel

Add_button_WPhome_12.3.0.1.zip

Hi! Thanks for this. I've never edited .cfg before, but is it possible to change the title of this button to "Family Tree Home"?

Share this post


Link to post
Share on other sites
SarahBeth

I found out how to edit it, and it works amazingly! Thank you SO much Michel for the Mod. This is wonderful.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
SarahBeth

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×