• Resolved kodame

    (@kodame)


    Great plugin except that it adds underlines to all the images as well, is there a way to prevent this?

Viewing 1 replies (of 1 total)
  • Plugin Author brianmcculloh

    (@brianmcculloh)

    Unfortunately the plugin underlines every single link within the content, even if it’s an image. You could play around with the code to exclude any link that has child nodes (other html tags inside, including image tags) so that only pure text links are underlined. To do this, edit the stylish-links.php file inside the plugin folder. Locate line 79:

    if($existing != 'stylish-link ') $node->setAttribute('class',$existing.'stylish-link');

    Try changing that line to:

    if(($existing != 'stylish-link ') && !$node->hasChildNodes()) $node->setAttribute('class',$existing.'stylish-link');

    This is untested, so just revert back if it breaks something. Please let me know.

Viewing 1 replies (of 1 total)
  • The topic ‘Images’ is closed to new replies.