Landing › Forums › Somentra (Impeka) › Feedback › Button style Line for Blog? › Reply To: Button style Line for Blog?
September 20, 2021 at 8:47 am
#490
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


