이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Remove Redundant Links

설명

Changes <a> elements pointing to the currently seen page by removing the href attribute and adding a descriptive title.

Compatible with most themes. Tested with TwentyTen

Example:
If you are on the page /about/

<a href='http://example.com/about/'>About</a> 

will be converted to

<a title='You are here.' class='rrl current_page_item'>About</a>

and

<link rel='author' href='/about/'>

will be removed.

All changes apply to GET requests only.

Send me your bug reports and suggestions via my contact page.

설치

Upload the directory to your plugin directory.
Activate the plugin through the ‘Plugins’ menu in WordPress.

FAQ

How can I change the replaced element, the title or the class name?

The current settings are chosen for compatibility.
To use other settings, you probably have to alter your theme.

You may alter the settings with a filter on rrl_settings in your functions.php.

Example:

function change_rrl_settings( $settings )
{
    $settings['class']     = 'my_own_class';
    $settings['title']     = 'Here be dragons';
    $settings['replace_a'] = 'span';

    return $settings;
}

add_filter( 'rrl_settings', 'change_rrl_settings', 10, 1 );
How can I prevent the stripping of the server prefix for links to other pages on the same site?

Same as above, set strip_server_prefix_on_all_links to FALSE:

function rrl_prevent_server_prefix( $settings )
{
    $settings['strip_server_prefix_on_all_links']     = FALSE;
    return $settings;
}

add_filter( 'rrl_settings', 'rrl_prevent_server_prefix', 10, 1);

후기

2023년 10월 25일
Unfortunately, there are problems with galleries in Elementor (for example, navigation in carousels does not work).Alas, I did not find an alternative solution.
2022년 8월 16일
Plugin still works and works perfect for WCAG. Author, it's probably good to change the plugin description, so it says it works on latest WordPress version. 🙂 Thanks!
모든 4 평가 읽기

기여자 & 개발자

“Remove Redundant Links”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Remove Redundant Links”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

  • v1.0 Initial release
  • v1.1 Fixed update blocker
  • v1.2 Fixed regex to match links. acronym and abbr will not be matched anymore.
  • v1.3 Fixed broken URIs on the frontpage.
  • v1.4 Added an option strip_server_prefix_on_all_links. Defaults to TRUE. Set this to FALSE to keep absolute URIs. See the FAQ.
  • v1.5 Fixed issue with <link rel=canonical>. Thanks to eviluody for testing!
  • v1.6 Fixed missing space in <linkrel=canonical>.
  • v1.7 Don’t touch <a rel=bookmark>, the »permalink« in TwentyTen.