Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1252839

    Hello,
    I would like to put a back button on the single post page after the content and before the “share this entry”

    I was able to get very close using the code provided by elliot from here: https://kriesi.at/support/topic/single-post-page-with-back-button/

    However, when i add it to my functions file it works on the single post page perfectly, however it breaks my blog listing page where it wont show the blue block and footer on my page. I did notice the code applied to the blog listing page and added the button which i simply put a display none, before realizing the bottom half of the website was missing.

    #1254987

    Hey,

    Thanks for contacting us and sorry for the late reply!

    I added following code to bottom of functions.php file in Appearance > Editor

    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']");
    }

    Please review your website :)

    Best regards,
    Yigit

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.