Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #896088

    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.

    #896423

    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

    #896491

    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.

    #896591

    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

    #896624

    Hello,
    you can close it.

    Thanks!

    #896802

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Single article with back button’ is closed to new replies.