• 20-05-2025, 20:37:15
    #1
    merhaba admin paneline girmeden wp-admin/admin-footer.php dosyasından footer link vermek istiyorum aşağıdaki kodlama üzerinden ne gibi bir değişiklik yapabilirim



    <?php
    /**
    * WordPress Administration Template Footer
    *
    * @package WordPress
    * @subpackage Administration
    */

    // Don't load directly.
    if ( ! defined( 'ABSPATH' ) ) {
    die( '-1' );
    }

    /**
    * @global string $hook_suffix
    */
    global $hook_suffix;
    ?>

    <div class="clear"></div></div><!-- wpbody-content -->
    <div class="clear"></div></div><!-- wpbody -->
    <div class="clear"></div></div><!-- wpcontent -->

    <div id="wpfooter" role="contentinfo">
    <?php
    /**
    * Fires after the opening tag for the admin footer.
    *
    * @since 2.5.0
    */
    do_action( 'in_admin_footer' );
    ?>
    <p id="footer-left" class="alignleft">
    <?php
    $text = sprintf(
    /* translators: %s: https://wordpress.org/ */
    __( 'Thank you for creating with <a href="%s">WordPress</a>.' ),
    esc_url( __( 'https://wordpress.org/' ) )
    );

    /**
    * Filters the "Thank you" text displayed in the admin footer.
    *
    * @since 2.8.0
    *
    * @param string $text The content that will be printed.
    */
    echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . $text . '</span>' );
    ?>
    </p>
    <p id="footer-upgrade" class="alignright">
    <?php
    /**
    * Filters the version/update text displayed in the admin footer.
    *
    * WordPress prints the current version and update information,
    * using core_update_footer() at priority 10.
    *
    * @since 2.3.0
    *
    * @see core_update_footer()
    *
    * @param string $content The content that will be printed.
    */
    echo apply_filters( 'update_footer', '' );
    ?>
    </p>
    <div class="clear"></div>
    </div>
    <?php
    /**
    * Prints scripts or data before the default footer scripts.
    *
    * @since 1.2.0
    *
    * @param string $data The data to print.
    */
    do_action( 'admin_footer', '' );

    /**
    * Prints scripts and data queued for the footer.
    *
    * The dynamic portion of the hook name, `$hook_suffix`,
    * refers to the global hook suffix of the current page.
    *
    * @since 4.6.0
    */
    do_action( "admin_print_footer_scripts-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnder scores

    /**
    * Prints any scripts and data queued for the footer.
    *
    * @since 2.8.0
    */
    do_action( 'admin_print_footer_scripts' );

    /**
    * Prints scripts or data after the default footer scripts.
    *
    * The dynamic portion of the hook name, `$hook_suffix`,
    * refers to the global hook suffix of the current page.
    *
    * @since 2.8.0
    */
    do_action( "admin_footer-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnder scores

    // get_site_option() won't exist when auto upgrading from <= 2.7.
    if ( function_exists( 'get_site_option' )
    && false === get_site_option( 'can_compress_scripts' )
    ) {
    compression_test();
    }

    ?>

    <div class="clear"></div></div><!-- wpwrap -->
    <script type="text/javascript">if(typeof wpOnload==='function')wpOnload();</script>
    </body>
    </html>
  • 20-05-2025, 20:40:23
    #2
    Footer-left bölümüne özel link eklemek için:

    <p id="footer-left" class="alignleft">
    <?php
    $text = sprintf(
    /* translators: %s: https://wordpress.org/ */
    __( 'Thank you for creating with <a href="%s">WordPress</a>.' ),
    esc_url( __( 'https://wordpress.org/' ) )
    );
    
    // Özel link ekleme
    $custom_link = ' | <a href="https://orneksite.com" target="_blank">Site Adı</a>';
    
    echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . $text . $custom_link . '</span>' );
    ?>
    </p>

    yeni bir footer bölümü oluşturmak için:
    <p id="footer-custom" class="aligncenter">
        <a href="https://orneksite.com" target="_blank">Site Adı</a> | 
        <a href="https://orneksite.com/iletisim" target="_blank">İletişim</a>
    </p>
  • 21-05-2025, 00:10:40
    #3
    onurdgn06 adlı üyeden alıntı: mesajı görüntüle
    Footer-left bölümüne özel link eklemek için:

    <p id="footer-left" class="alignleft">
    <?php
    $text = sprintf(
    /* translators: %s: https://wordpress.org/ */
    __( 'Thank you for creating with <a href="%s">WordPress</a>.' ),
    esc_url( __( 'https://wordpress.org/' ) )
    );
    
    // Özel link ekleme
    $custom_link = ' | <a href="https://orneksite.com" target="_blank">Site Adı</a>';
    
    echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . $text . $custom_link . '</span>' );
    ?>
    </p>
    yeni bir footer bölümü oluşturmak için:
    <p id="footer-custom" class="aligncenter">
        <a href="https://orneksite.com" target="_blank">Site Adı</a> |
        <a href="https://orneksite.com/iletisim" target="_blank">İletişim</a>
    </p>



    bu şekilde yaptım ama ahrefs yada semrush tan baktığımda link gözükmüyor hocam




  • 21-05-2025, 19:12:49
    #4
    City6991 adlı üyeden alıntı: mesajı görüntüle
    bu şekilde yaptım ama ahrefs yada semrush tan baktığımda link gözükmüyor hocam




    Hocam gözükmemesi gayet normal wp-admin kısmında yaptığımız değişiklikler korumalı oldugundan gözükmez.

    onun yerine bu kodu deneyin

    // functions.php dosyasına ekleyin

    add_action('wp_footer', 'add_seo_footer_link');
    function add_seo_footer_link() {
        echo '<div style="display:none;"><a href="https://orneksite.com" rel="dofollow">Anahtar Kelime</a></div>';
    }