How to return HTML code in PHP?
I want to remove excerpt content from my homepage and in its place I want to add some icons and links. But I don't know how to do this?
This is the function code I found in themes function file
if ( ! function_exists( 'x_excerpt_string' ) ) : function x_excerpt_string( $more ) { $stack = x_get_stack(); if ( $stack == 'integrity' ) { return ' ... <div><a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a></div>'; } else if ( $stack == 'renew' ) { return ' ... <a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a>'; } else if ( $stack == 'icon' ) { return ' ...'; } else if ( $stack == 'ethos' ) { return '...'; } } add_filter( 'excerpt_more', 'x_excerpt_string' ); endif;
Can anyone please tell me how to do this?
-
dreucifer -
Thanks
{{ DiscussionBoard.errors[9830559].message }} -
-
sahariaremon -
Thanks
{{ DiscussionBoard.errors[9843492].message }} -