Hello,
I’m trying to add a ‘Back’ button on every single article at the bottom.
I add this in functions.php file and the button is displayed but does not work.
add_action( ‘ava_after_content’, ‘enfold_customization_back_button’ );
function enfold_customization_back_button() {
echo do_shortcode(“[av_hr class='invisible' height='90' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello']“);
$link = get_permalink( avia_get_option(‘blogpage’) );
echo do_shortcode(“[av_button label='Back' link='manually,".$link."' link_target='' size='medium' position='left' icon_select='no' icon='ue800' font='entypo-fontello' color='theme-color' custom_bg='#444444' custom_font='#ffffff']“);
}
In private content the access to the site.
Best regards.
Hey topmedialab,
Did you try setting the URL of the link value manually? Since you want it to go back to your blog page then you can hard code it:
$link = "http://your.site/blog/";
Best regards,
Rikard
Hello
I added the link and it works fine.
Thanks and I suggest to implement this feature in blog articles because it’s very good for usability for users.
Excellent support! Best regards.
Hi,
Great, glad you got it working and thanks for the feedback :-)
Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
Hello,
you can close it.
Thanks!