wpsmith / genesis-sandbox-featured-content-widget

Genesis Sandbox Featured Content Widget. Based on Nick Croft's Genesis Featured Widget Amplified for additional functionality which allows support for custom post types, taxonomies, and extends the flexibility of the widget via action hooks to allow the elements to be re-positioned or other elements to be added.
39 stars 21 forks source link

Filter or Hook for excerpt_more #51

Closed nikcree closed 9 years ago

nikcree commented 9 years ago

Is there a filter or hook for the excerpt_more and the_content_more_link. I would like to add a div around the more link to provide more control for styling as a button.

(PS I posted this also at https://wordpress.org/support/topic/filter-or-hook-for-excerpt-read-more?replies=1 before realising that you support the plugin here) - Thanks Again

wpsmith commented 9 years ago

excerpt_more filters excerpt_more (WordPress core filter). So if you would like to filter it, then you can, just hook in after the widget at priority 11+. add_filter( 'excerpt_more', 'prefix_excerpt_more', 11 );

For get_the_content_more_link, use the Genesis get_the_content_more_link filter likewise. add_filter( 'get_the_content_more_link', 'prefix_get_the_content_more_link', 11 );

Please let me know if this works for you. As it stands at the moment, I do not believe this to be an issue.