-
AuthorPosts
-
December 7, 2023 at 12:50 pm #1427447
Hey Support
In the admin panel in section “pages” one page (Ny patient) is duplicated. I have tried to delete 1 page, but this results in both pages being deleted.
How is it possible remove the duplicate page?See page https://tandlaegecanter.dk/ny-patient/
In below link the backend coding is visible in the frontend. Please could you maybe help with locating the link and how it can be deactivated?
Thx a lot
Best regards LeneDecember 8, 2023 at 3:15 am #1427521Hey Lene,
Thank you for the inquiry.
How did you duplicate the page? Did you use a plugin? Instead of duplicating the page, try to save the builder content as template, delete the old page, then apply the template to a new page.
// https://kriesi.at/documentation/enfold/intro-to-layout-builder/#templates
The link with visible codes is an RSS feed URL, automatically generated by WordPress. However, instead of displaying XML code, it shows HTML tags of the page, which is incorrect. If you want to disable it, add this code in the functions.php file.
/** * Display a custom message instead of the RSS Feeds. * * @return void */ function wpcode_snippet_disable_feed() { wp_die( sprintf( // Translators: Placeholders for the homepage link. esc_html__( 'No feed available, please visit our %1$shomepage%2$s!' ), ' <a href="' . esc_url( home_url( '/' ) ) . '">', '</a>' ) ); } // Replace all feeds with the message above. add_action( 'do_feed_rdf', 'wpcode_snippet_disable_feed', 1 ); add_action( 'do_feed_rss', 'wpcode_snippet_disable_feed', 1 ); add_action( 'do_feed_rss2', 'wpcode_snippet_disable_feed', 1 ); add_action( 'do_feed_atom', 'wpcode_snippet_disable_feed', 1 ); add_action( 'do_feed_rss2_comments', 'wpcode_snippet_disable_feed', 1 ); add_action( 'do_feed_atom_comments', 'wpcode_snippet_disable_feed', 1 ); // Remove links to feed from the header. remove_action( 'wp_head', 'feed_links_extra', 3 ); remove_action( 'wp_head', 'feed_links', 2 );
Best regards,
IsmaelDecember 8, 2023 at 2:50 pm #1427568This reply has been marked as private.December 10, 2023 at 12:08 am #1427666Hi,
I removed your duplicate page “ny-patient-1” and corrected the two sub-pages so the new parent page wouls be your original “ny-patient” page.
Please check. If this is what you wanted then you can delete the “ny-patient-1” page that is in your trash.
I found that you had a Classic Editor plugin, I disabled that and enabled the theme setting at Enfold Theme Options ▸ Select Your Editor ▸ Use WP Classic Editor because the plugin is not needed.
I’m not sure that I understand your other question about the “feed” link, do you want to have a feed link?
A feed typically shows your posts, but you have no posts so there is nothing for your feed to show.
Also to read feeds you need a “feed reader”, otherwise it will just look like code, but I don’t know anyone who reads feeds anymore, do you think your visitors are going to used a feed reader once to add some posts?Best regards,
MikeDecember 11, 2023 at 1:51 pm #1427776This reply has been marked as private.December 11, 2023 at 6:22 pm #1427799Hi,
Glad we cound help, Ismael’s code is for the functions.php file.
Unless there is anything else we can assist with on this issue, shall we close this thread then?Best regards,
MikeDecember 13, 2023 at 1:06 pm #1427989This reply has been marked as private.December 13, 2023 at 5:17 pm #1428025Hi,
When I check the link it is not showing xlm-codes, it is show html of an error page
iden blev ikke fundet – Tandlæge Bente Canter in English ▸ the id was not found – Dentist Bente Canter
Since this is not a proper URL for your site no one should be going to it, so you can ignore it.
You wrote that you do not need a feed as it isn’t relevant for the client, so I don’t understand why you are checking this URL?Best regards,
MikeDecember 14, 2023 at 11:37 am #1428079This reply has been marked as private.December 14, 2023 at 11:53 am #1428083Hi,
No, this page is not something that hackers can take advantage of.Best regards,
MikeDecember 14, 2023 at 2:23 pm #1428098This reply has been marked as private.December 14, 2023 at 4:17 pm #1428121Hi,
Thanks for letting us know, we’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard -
AuthorPosts
- The topic ‘Admin: Duplicated web page and open codes of link’ is closed to new replies.