Viewing 1 replies (of 1 total)
  • Shanj,

    I wanted same functionality. Here is how I did it

    Go to plugin editor

    Editing sgr-nextpage-titles/sgr-nextpage-titles.php (active)

    Approximately 80% of the way down you will see this:

    if ( $options['toc-position'] === 'top' ) {
    				$enhanced_content = $toc . $enhanced_content;
    			}
    			elseif ( $options['toc-position'] === 'bottom' ) {
    				$enhanced_content .= $toc;
    	}

    I commented that whole part out and replaced it with logic to just put the TOC above *and* below the content.

    Please see what I replaced it with below:

    /*if ( $options['toc-position'] === 'top' ) {
    				$enhanced_content = $toc . $enhanced_content;
    			}
    			elseif ( $options['toc-position'] === 'bottom' ) {
    				$enhanced_content .= $toc;
    			}*/
                           $enhanced_content = $toc . $enhanced_content . $toc ;

    Hope this helps

Viewing 1 replies (of 1 total)
  • The topic ‘Contents top AND bottom please :)’ is closed to new replies.