© 2021 Greatives Hub - Powered by Greatives & Greatives Web

Reply To: Button style Line for Blog?

Landing Forums Impeka Feedback Button style Line for Blog? Reply To: Button style Line for Blog?

#394
Kosmas
Keymaster
Hub Member Badge
Moderator Badge Lvl 3

Hi guys!

I think that you just need to override the read more function via the child theme.

function impeka_grve_read_more( $post_id = "", $more_text = '' ) {
	$icon = impeka_grve_get_svg_icon( 'arrow-2');
	if ( empty( $post_id ) ) {
		$post_id = get_the_ID();
	}
	if ( empty( $more_text ) ) {
		$more_text = esc_html__( 'read more', 'impeka' );
	}
	$more_button = '<a href="' . esc_url( get_permalink( $post_id ) ) . '" class="grve-btn-text grve-btn-line grve-line-bottom grve-text-primary-1 grve-text-hover-primary-1 grve-btn-medium">';
	$more_button .= '<div class="grve-btn-inner">';
	$more_button .= '<span>' . esc_html( $more_text ) . '</span>';
	$more_button .= '<span class="grve-line grve-bg-primary-1"></span>';
	$more_button .= '</div>';
	$more_button .= '</a>';
	return $more_button;
}

In general, with Impeka you can override everything and without having to worry about the next theme release (new minor release in a few minutes/hours). Enjoy it!