Forums

Adding "No Follow" to a line of code (2 posts)

  1. jennifinch
    Member
    Posted 1 year ago #

    Hello,
    Just wanted to get some examples and/or opinions and/or options on the best way to include a rel="no follow" within the lines of code below.
    Thank You.

    <li class="bmnm-sign-in"><a class="logout" href="<?php echo wp_logout_url( bp_get_root_domain() ) ?>"><?php _e( 'Sign Out', 'buddypress' ) ?></a></li>
       <?php else : ?>
       <li class="bmnm-sign-in-join">
         <a href="<?= wp_login_url() ?>"><?php _e( 'Sign in', 'buddypress' ) ?></a>
    <?php if ( bp_get_signup_allowed() ) : ?>
       <?php printf( __( ' / Join <a href="%s" title="Create an account"></a>', 'buddypress' ), site_url( BP_REGISTER_SLUG . '/' ) ) ?>
    <?php endif; ?></li>
  2. doncarswell
    Member
    Posted 1 year ago #

    just put in rel="nofollow" after the <a

    for example, for the first link.
    "><?php _e( 'Sign Out', 'buddypress' ) ?>

    As long as it is somewhere in the tag, obviously do not put it in the php tags.

Topic Closed

This topic has been closed to new replies.

About this Topic