• Resolved cressr

    (@cressr)


    Hi,
    Is there a function to return you to the top/a-z index once you have selected a letter or paged down the list, rather than having to page up manually?
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    That functionality isn’t built-in currently, but you can add it easily by copying wp-content/plugins/a-z-listing/templates/a-z-listing.php into your theme/child-theme and adding the required links.

    Specifically you need to add links which point their href to #letters:

    
    <!-- ... snipped ... -->
    <div class="letter-section" id="<?php $a_z_query->the_letter_id(); ?>">
    	<h2>
    		<span><?php $a_z_query->the_letter_title(); ?></span>
    	</h2>
    	<div><ul>
    		<!-- ... snipped ... -->
    	</ul></div>
    	<a href="#letters">Back to top</a>
    </div>
    <!-- ... snipped ... -->
    

    You might want to use the theme customizer’s “custom css” feature to add some styles to make it look nicer.

    Hello I would like very much this feature on the plugin. Thanks

    Plugin Author Dani Llewellyn

    (@diddledani)

    I’m adding a back-to-top feature in the upcoming 1.9.0 which will change the templates in the plugin. If you’ve modified the template or copied it into your theme then either:

    • check the changes when the release lands to merge with your copy,
    • replace with the newer template, or
    • remove the template from your theme to revert to the stock one from the plugin.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Back to top’ is closed to new replies.