Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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 Lene

    #1427521

    Hey 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,
    Ismael

    #1427568
    This reply has been marked as private.
    #1427666

    Hi,
    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,
    Mike

    #1427776
    This reply has been marked as private.
    #1427799

    Hi,
    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,
    Mike

    #1427989
    This reply has been marked as private.
    #1428025

    Hi,
    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,
    Mike

    #1428079
    This reply has been marked as private.
    #1428083

    Hi,
    No, this page is not something that hackers can take advantage of.

    Best regards,
    Mike

    #1428098
    This reply has been marked as private.
    #1428121

    Hi,

    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

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Admin: Duplicated web page and open codes of link’ is closed to new replies.