Support » Plugin: Easy Footnotes » Change location of footnotes at bottom

  • Resolved Sherry

    (@xaari)


    Hi Jason,

    Thank you for this excellent plugin! I love how it’s so easy to use that I don’t even need to number the footnotes!

    I was wondering if you could please help me figure out how to change the location of the footnotes at the bottom of a post/page. For some reason, the footnotes appear below the social media buttons, while I’d like for them to appear above the buttons.

    https://s13.postimg.org/6nxbxomg7/footnote.jpg

    Thanks!

    • This topic was modified 2 years, 8 months ago by  Sherry.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jason Yingling

    (@yingling017)

    Hi Sherry,

    Sorry for the delay getting back to you. That is going to be controlled by the priority when Easy Footnotes adds itself to the bottom of your content and when the social icons does. Currently that is set to 20 so your social icons are likely being added in with a priority somewhere between 10-20.

    If you want to play with Easy Footnotes priority you can edit line 43 of easy-footnotes.php that looks like this:

    add_filter('the_content', array($this, 'easy_footnote_after_content'), 20);

    Changing 20 to a lower number may get the priority lower than your social icons and add it in before.

    Just looked it up, and all Jetpack share buttons have the priority of 19 I believe. I’d really, really appreciate it if you could permanently update the filter call so that it appears above these all the time. I tested it by changing the line to 15 and it works / looks great, but sadly I’ll lose it next time you update and have to remember to do this again! It’s really wonky looking to be below the social share buttons. Thanks for your work on this plugin! 🙂

    • This reply was modified 2 years, 6 months ago by  rileyadamvoth.
    • This reply was modified 2 years, 6 months ago by  rileyadamvoth.

    Thanks for this great plugin! I also wanted the footnotes to appear before Jetpack share buttons, and just to note an alternative solution for others wanting to do the same, you can move Jetpack share buttons to the bottom of the content (and have the footnotes display before the buttons) by adding the following to your theme’s function.php:

    
    add_filter( 'the_content', 'move_jetpack_sharing', 30 );
    function move_jetpack_sharing( $content ) {	
    	if ( is_singular( 'post' ) && function_exists( 'sharing_display' ) ) {
    		remove_filter( 'the_content', 'sharing_display', 19 );
    		$content = $content . sharing_display();
    	}	
    	return $content;
    }
    
    • This reply was modified 2 years, 5 months ago by  maitta.

    I followed what you said, Jason, and up until I drop it down to 11, it shows right at the bottom of the post. If I make it anything lower than that, it doesn’t show at all. Also, agree with @rileyadamvoth. Would be hard to keep track of this when you update the plugin the next time around and it goes back to 20.

    The URL I’m testing this on:
    https://dietbros.com/ultimate-diet-guide/mediterranean-diet/

    Do let me know what I can do to bring it above the newsletter subscription box (within the main content box as there’s no margin on the left currently and it’s overlapping the social icons).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change location of footnotes at bottom’ is closed to new replies.