• Resolved vitvlad11

    (@vitvlad11)


    Error when adding yandex.metrica

    I am adding my plugin with the yandex.metrica code to the site. The code was applied to the entire site and to the main page.
    After that, the ability to create and edit courses disappears.

    The code in the plugin:

    <?php

    /*

    Plugin Name: My plugin of yandex

    Plugin URI:

    Description:

    Version: 1.0

    Author: vitvlad

    Author URI:

    */

    ?>

     <?php

    add_action( 'wp_footer', 'bashka_meta', 10, 2);

    function bashka_meta() {

    if( is_front_page() ) {

        ?>

    <meta name="yandex-verification" content="111111111111111"* />

        <?php

    }

    }

    *The number has been replaced

    An error notification appears:Error Something Went Wrong!
Viewing 1 replies (of 1 total)
  • Hello @vitvlad11,

    Thank you for reaching out to us. It seems that there may be a conflict with your custom plugin. Unfortunately, we do not provide support for issues related to third-party plugins or custom code.

    I recommend disabling the custom plugin temporarily and checking if this resolves the issue. If the issue is resolved, it may indicate that the plugin is not coded correctly.

    For verifying your site with Yandex, I suggest using an SEO plugin that allows easy integration with Yandex, which can help avoid potential conflicts.

    Please feel free to reach out if you have any further questions.

Viewing 1 replies (of 1 total)

The topic ‘Error when adding yandex.metrica’ is closed to new replies.