Hello kotanji,
Put below code into your current theme’s functions.php file located at wp-content/themes/your_current_active_theme/ folder.
function gridbox_more_link() {
// Get theme options from database.
$theme_options = gridbox_theme_options();
// Display read more button if there is excerpt.
if ( $theme_options['excerpt_length'] > 0 ) : ?>
<a>" class="more-link"><?php esc_html_e( 'More', 'gridbox' ); ?></a>
<?php
endif;
}
Note : All Changes you done in any file of theme are gone when you update theme. So prefer Child Theme.
Hope this will helps you.
An alternative if don’t want to create a child theme and edit the code is the Say What? WordPress plugin.
You can download it on https://wordpress.org/plugins/say-what/
Cheers,
Thomas
You can download it on https://wordpress.org/plugins/say-what/
I spent an hour to use the plugin, but failed to fill in correctly:
Original string
Text domain
Text context
Can you help me?
Many thx!
function gridbox_more_link() {
// Get theme options from database.
$theme_options = gridbox_theme_options();
// Display read more button if there is excerpt.
if ( $theme_options['excerpt_length'] > 0 ) : ?>
<a class="more-link" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php esc_html_e( 'MORE SIGN', 'gridbox' ); ?></a>
<?php
endif;
}
This work right