Skip to content

Instantly share code, notes, and snippets.

@Dianakc
Created September 4, 2013 19:02
Show Gist options
  • Save Dianakc/0293eb0540f35340dcae to your computer and use it in GitHub Desktop.
Save Dianakc/0293eb0540f35340dcae to your computer and use it in GitHub Desktop.
Modificando a classe do link "readmore"
<?php
function dkc_change morelink_class( $link, $text )
{
return str_replace(
'more-link'
,'leiamais' //removi a more-link
,$link
);
}
add_action( 'the_content_more_link', 'dkc_change morelink_class', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment