WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Featured Post Widget
[resolved] Add a class to "Read More" text (3 posts)

  1. AckriteConsulting
    Member
    Posted 1 year ago #

    Hi there,

    How would I go about adding a CSS class to the "Read More" text??

    Thanks
    Kevin

    http://wordpress.org/extend/plugins/advanced-featured-post-widget/

  2. tepelstreel
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Kevin,

    At the moment it's not in the widget. But if you change line 89 of the A5_ExcerptClass.php from

    if ($readmore) $this->output.=' <a href="'.$link.'" title="'.$title.'">'.$rmtext.'</a>';

    to

    if ($readmore) $this->output.=' <a href="'.$link.'" title="'.$title.'" class="myClass">'.$rmtext.'</a>';

    it should work. You will loose your class with the next update though.

    Regards,
    Stefan

  3. tepelstreel
    Member
    Plugin Author

    Posted 1 year ago #

    Hello Kevin,

    you can enter your own class for the 'read more' link now.

    Regards,
    Stefan

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.