Using custom links as parent page

Tim

(@tneville)

Hi @thecollins14,

I can see your Coronavirus Update page linked under About Us > Coronavirus in the menu.

As the Coronavirus menu item is a custom link (set to #), it is not possible to make it a sub-item of that. It (Coronavirus) would need to be a page itself to have a child page (.../coronavirus-update).

Does that make sense?

Kind Regards,
Tim

  • This reply was modified 4 days, 8 hours ago by Tim. Reason: Added clarity

Hi

Yes, I worked out a solution. I created an empty page called “Coronavirus” so that I was able to make it a parent of “Coronavirus update” therefore creating the url that I wanted.

I did not add the “Coronavirus” page to the menu, instead I just added a custom link called “Coronavirus” so that people would not end up clicking on it and ending up on an empty page.

So now the url is what I want and the Coronavirus link on the menu on the front end just points users to the sub menu items, which is what I wanted to do.

Hopefully this solution may be of use to others. 🙂

Thanks!

Tim

(@tneville)

Hi @thecollins14,

Thanks for feeding back, yes, that will indeed work!

Kind Regards,
Tim

Just a further question on this, is creating blank pages in this way bad practice? Should I be using posts with categories instead? I thought that posts were more for blogs than static content for websites….

Thanks

Tim

(@tneville)

Hi @thecollins14,

No problem. The way that I personally do it on my site, if I need to do this, is I just add a bullet point list to the parent page. This way, if anyone does happen to land on it, they can navigate to one of the pages with content. You don’t have to do that – but I think of it as a fairly good safety net.

So if you visit the page (for example Coronavirus) you would just see:
————————————

  • Coronavirus Update
  • Our Supporters

————————————

Posts are indeed more aimed at blogs, so I would stick with Pages for your specific site – which do not natively have categories.

Hope this helps. Please drop a reply if you have any other questions – we are all here to help. 🙂

Kind Regards,
Tim



Source link