I am using x-theme for my website Gizmoids 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?
How to return HTML code in PHP?
3
I am using x-theme for my website Gizmoids
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
When I remove excerpt by using theme option it shows '...' in the place of content. But I want to add facebook or twitter icons in its place...
Can anyone please tell me how to do this?
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
Code:
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
- sahariaremon
Next Topics on Trending Feed
-
3