WordPress.org

Plugin Directory

Better Anchor Links

Creates anchor links to heading tags in the content and displays automatically at the top of the content, or allows for custom placement with tags.

How Do I Place In Custom Locations?

In Content:

  1. Using the visual editor
    • Add the tag [mwm-aal-display] into your individual content using the visual editor.
  2. PHP Template Tag(must be below the_content())
    • <?php global $mwm_aal; echo $mwm_aal->output_content_links(); ?>

In Sidebar:

  1. Activate Widget
    • Go to Appearance -> Widgets in WordPress admin "Better Anchor Links".
  2. PHP Template Tag
    • <?php global $mwm_aal; $mwm_aal->output_sidebar_links(); ?>

How Do I Add Custom Styles?

The content display and side bar are wrapped with a <div> with an assigned css class. You can put the classes into your own style sheet and use further declarations to target elements within the div.

For Content:(uses <ol>,Does not use an H tag for title)
    .mwm-aal-container{}
    .mwm-aal-container-title{}

For Sidebar: (uses <ul>, traditional h2 tag for title)
    mwm-aal-sidebar-container{}

How To remove lines?

Free edit css/mwm-aal.css for any changes. You can remove all lines above and under the links by deteting section: border-top:1px solid #ccc; border-bottom: 1px solid #ccc;

How To qTranslate/mqTranslate support?

Put qTranslate/mqTranslate string to List Output Title for example for EN and CZ language: <!--:cs-->Obsah<!--:--><!--:en-->Contents<!--:-->

Requires: 3.0 or higher
Compatible up to: 4.1.6
Last Updated: 2015-2-2
Active Installs: 3,000+

Ratings

4.4 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1 100,1,1 100,1,1 67,6,4 100,2,2
100,1,1
100,4,4
100,1,1
100,1,1
100,2,2
100,4,4
100,1,1
100,1,1 100,1,1
100,2,2
0,1,0
50,2,1
100,1,1
0,1,0