Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle Sitemap stylesheet header link #658

Open
alanjacobmathew opened this issue Dec 3, 2023 · 1 comment
Open

Toggle Sitemap stylesheet header link #658

alanjacobmathew opened this issue Dec 3, 2023 · 1 comment

Comments

@alanjacobmathew
Copy link

When sitemap styling is enabled the admin has the ability to add or remove the logo. Similarly give the admin the ability to enable or disable the backlink to the homepage. Or allow the admin to choose what link to display.

Why?
When a static version of the site is created, the link from the logo & title still redirects to the dev site, and not to the static site.

I tested with Staatic plugin and Simply Static plugin plugin to create, all other permalinks can be controlled with the absolute URL or relative URL setting in those plugins. But this link cannot be directly controlled.

@sybrew
Copy link
Owner

sybrew commented Dec 4, 2023

Hi Alan,

We use get_home_url() to output that URL, which is filterable via home_url. If that URL is incorrect, something may need to be addressed with the setup.

Disabling that URL won't make the cause of the problem disappear, and it may be echoed somewhere obscure.

We load the sitemap at parse_request priority 15.

@sybrew sybrew changed the title Add an option for the admin to enable or disable link to the homepage on sitemap, when sitemap styling is enabled Toggle Sitemap stylesheet header link Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants