Viewing 6 replies - 1 through 6 (of 6 total)
  • 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 3 years, 10 months ago by Tim. Reason: Added clarity
    Thread Starter thecollins14

    (@thecollins14)

    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!

    Hi @thecollins14,

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

    Kind Regards,
    Tim

    Thread Starter thecollins14

    (@thecollins14)

    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

    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

    Thread Starter thecollins14

    (@thecollins14)

    Hi Tim

    I would like to ask a further question on this subject:

    I am surprised that more people don’t have this problem, I would think that most people are surely using WordPress for websites and using pages rather than blogs and posts these days so how are they avoiding this problem?

    I would have thought that anyone adding sub menus and wanting to form the correct url path would have the issue that I had, otherwise what are they doing? I know there is a plugin called “Create And Assign Categories For Pages” but I am wary of free plugins these days as so many cease to be updated and so are a risky prospect. I have noticed that the author had not updated this plugin for several months but saw today that he has now updated it – in the last 5 days. I wish WordPress would pay more attention to users who use pages and not posts and address their needs better, especially as I believe most people are creating websites now with WordPress and not blogs. It can’t be that tricky to add categories for pages into the WordPress functionality so users don’t have to resort to a plugin.

    I am very interested to hear what you think about this.

    Many thanks

    Helen.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Using custom links as parent page’ is closed to new replies.