Forums
-
- Forum
- Posts
-
- Installation
- 28,527
- Troubleshooting
- 62,945
- Themes
- 10,453
- Plugins
- 15,405
- Requests & Feedback
- 15,041
- Showcase
- 3,250
-
first thing I would do is break this into separate functions
add_filter( 'generate_smooth_scroll_elements', 'th_scroll' ) ;
function th_scroll ( $elements ) {
$elements[] = 'a[href*="#"]:not(.wp-show-posts-read-more)';
return $elements;
}