Adding horizontal rule element
-
I’m trying to add
<hr>before the plugin output using the defaults filter.
This is the code I’m using:add_filter( 'related_posts_by_taxonomy_shortcode_defaults', 'related_shortcode_before' ); function related_shortcode_before( $defaults ) { $defaults['before_shortcode'] = '<hr>'; return $defaults; }The horizontal rule is showing but it breaks the layout of the page.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Adding horizontal rule element’ is closed to new replies.