WordPress.org

Ready to get started?Download WordPress

Forums

Add a unique class to any output html tags please (3 posts)

  1. palamedes
    Member
    Posted 7 years ago #

    In "template-functions-post.php" you have things like;

    $output .= ' <a href="'. get_permalink() . "#more-$id\">$more_link_text</a>";

    And most likely in other places around the code.. Please add a class to those elements like this;

    $output .= ' <a href="'. get_permalink() . "#more-$id\" class='morelink'>$more_link_text</a>";

    So that we can correctly define them via CSS.

    Thanks.

  2. Kafkaesqui

    Posted 7 years ago #

    This will be added in the next major update to WordPress (though the class will be 'more-link'). Not sure why it took so long to get it...

  3. palamedes
    Member
    Posted 7 years ago #

    Thanks Kaf =)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.