Site logo

Archived topic

Generate link to parent-site

7 replies · Started by Thomas on June 23, 2020

Viewing posts 1–8 of 8

Hello again guys!

Once again I need your helping hand:

I have implemented breadcrumbs above my main content via hook function:

breadcrumbs

On spefic pages I want a back button that leads to the parent site:

Back link

In this example I want to get from the page "Firmenevents" to its parent "Veranstaltungen".

Is it possible to automize that so I just have to create one hook.

And would it be possible to implement a next button to another site that belongs to the same parent?

Thanks in advance.

Cheers,
Thomas

Hi there,

Not sure if I understand.

Where would you like to add that button?

Do you have an example to show?

Hi Leo,

if you take a look at this page:

https://runningpapaya.de/veranstaltungen/firmenevents/

I have already added the "back button" it's called "Zurück" but I don't know what php(?) function would make the trick.

So I need a function to add to this hook, that generates a link to the parentpage of a childpage. I hope that was understandable...

Hi there,

So would this always go to the parent page? What if there is no parent page? Would something else display?

This would always go to the parent page because the hook only shows on those specific child pages.

Exactly what I was looking for!

Thanks again :)

Glad we could be of help

This archived topic is closed to new replies.