Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: links longer than page width!


_ck_
Participant

@_ck_

It would be easier to disable the auto-link entirely for a post when is detected than to parse it out, if that will do. Somehow I missed the original question was scrolling on code, sorry about that but as you found it’s very simple CSS.

Disabling auto-link is something like: (untested)

remove_filter('post_text', 'make_clickable');
add_filter('post_text', 'make_clickable_if_not_code');
function make_clickable_if_not_code($text) {
if (strpos($text,'<code>')===false) {return make_clickable($text);}
return $text;
}

[code] is detected than to parse it out, if that will do. Somehow I missed the original question was scrolling on code, sorry about that but as you found it’s very simple CSS.

Disabling auto-link is something like: (untested)

remove_filter('post_text', 'make_clickable');
add_filter('post_text', 'make_clickable_if_not_code');
function make_clickable_if_not_code($text) {
if (strpos($text,'<code>')===false) {return make_clickable($text);}
return $text;
}

Skip to toolbar