• Resolved pfitchett

    (@pfitchett)


    I am currently setting up and testing The Events Calendar before moving it to our live site, so I want to set everything up with relative URLs that will work in both the test and live sites.
    I have the Events slug set to ‘events’, so I can set normal links in WordPress to ‘events/’ and the URL is handled correctly, but I am having a difficulty setting up a menu to Events.
    By default the Custom Link URL is an absolute URL – for my test site, this is “https://localhost:8888/Nancy/events/” – which won’t work when transferred to the live site.
    If I delete the WordPress URL (“https://localhost:8888/Nancy”) the menu URL becomes “/events/” that attempts to link to “https://localhost:8888/events/” from the generated page – clearly not wanted.
    If I change the menu URL to “events/” (or “events”), as I do elsewhere, that becomes “https://events/” (or “https://events”) in the HTML on the generated page – which is even worse. (It is actually changed to this in the Save Menu action of the Menus setup.)

    Does anyone know of a way to get a relative address set for Events in a Menu?
    Many thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Relative URL to Events in Menu’ is closed to new replies.