Plugin's [ps2id]
shortcode can be inserted directly in WordPress post editor (as with any WordPress shortcode) in order to create links and id targets in your content.
Link shortcode - [ps2id url='#some-id']link text[/ps2id]
Attributes
[ps2id url='#some-id' offset='100']link text[/ps2id]
(offset scrolling by 100 pixels), [ps2id url='#some-id' offset='#navigation-menu']link text[/ps2id]
(Offset scrolling by the height/width of the element with id navigation-menu
)
[ps2id url='#some-id' class='class-a class-b']link text[/ps2id]
ps2id-speed-VALUE
, will change the scroll duration/speed of that link. For example, [ps2id url='#some-id' class='ps2id-speed-400']link text[/ps2id]
will set link's scroll duration to 400 milliseconds.
Target id shortcode - [ps2id id='some-id'/]
(anchor-point target) or [ps2id_wrap id='some-id'] your content... [/ps2id_wrap]
(wrapper target)
Attributes
[ps2id id='some-id' target='#some-id + div'/]
(the associated link will scroll to #some-id
element but will be highlighted as if its target is the next adjacent div, i.e. the div immediately following #some-id
element)