Add button
-
Hi
It is possible to add button (more) below every job offer (grid view)?
-
Hello alekma,
Yes, it’s possible by adding the following code snippet in your theme’s functions.php file.
/** * Filter the "read more" excerpt string link to the post. * * @param string $more "Read more" excerpt string. * @return string (Maybe) modified "read more" excerpt string. */ function wp_excerpt_more( $more ) { return sprintf( '<a class="read-more btn btn-primary" href="%1$s">%2$s</a>', get_permalink( get_the_ID() ), __( 'Read More', 'textdomain' ) ); } add_filter( 'excerpt_more', 'wp_excerpt_more' );Hope it will help you. Thank you for using SJB and let us know if we can help you further.
Thank & Regards,
PressTigersI add code but nothing happend, Do i need add something to content-job-listening-frid-view.php?
Can you please share your website URL so that we can suggest you a solution?
We have gone through the provided link. You are customizing SJB templates. Above mentioned code will work with default templates of SJB.
Kindly add “Read More” button code in grid view template that you have customized.
Let us know if you need any further assistance.
Hello Team,
Have the same issue of “Read more” button not appearing in both list & grid view.
We havent changed the sjb templates at all and tried adding the code you mentioned above to theme functions.php, but still the button doesnt appear. Any thing else that we can debug/look at?Thanks in advance!
The topic ‘Add button’ is closed to new replies.