© 2021 Greatives Hub - Powered by Greatives & Greatives Web

Reply To: Button style Line for Blog?

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

#490
Kosmas
Keymaster
Hub Member Badge
Moderator Badge Lvl 3

Hello Bernhard,

I think that you need the function below:

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-only-text grve-text-primary-1 grve-text-hover-primary-1 grve-btn-medium grve-with-svg-icon-arrow-1">';
	$more_button .= '<div class="grve-btn-inner">';
	$more_button .= '<span>' . esc_html( $more_text ) . '</span>';
	$more_button .= '<div class="grve-btn-svg-icon grve-with-shape grve-svg-white"><svg width="12px" height="12px" viewBox="0 0 12 12"><polygon points="3.6 0 10 6 3.6 12 2 10.5 6.8 6 2 1.5"></polygon></svg><div class="grve-shape-icon grve-circle grve-simple grve-bg-primary-1"></div></div>';
	$more_button .= '</div>';
	$more_button .= '</a>';
	return $more_button;
}

For the reasons you have already mentioned, we prefer to avoid adding all the button options to the read more button. The button element is an advanced element and if you think that you can also set up your blog globally in Theme Options and not just in the blog elements, you can easily understand what I mean.

For customers like you (you already have 6 Impeka licenses), this is the place to ask for small changes like this. We are always willing to help 🙂

Best Regards
Kosmas

Privacy Preferences

When you visit our website, it may store information through your browser from specific services, usually in the form of cookies. Here you can change your Privacy preferences. It is worth noting that blocking some types of cookies may impact your experience on our website and the services we are able to offer.

Our website uses cookies, mainly from 3rd party services. Define your Privacy Preferences and/or agree to our use of cookies.