Title: closing wrap shortcode
Last modified: September 12, 2017

---

# closing wrap shortcode

 *  Resolved [anderssonolofandreas](https://wordpress.org/support/users/anderssonolofandreas/)
 * (@anderssonolofandreas)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/closing-wrap-shortcode/)
 * Hi!
 * I’m using your great for my wordpress site test.apologia.se which I’m using visual
   composer for creating.
 * It is a singel-page site on which I’d love if the nav-alternativ for the current
   section is highlighted.
 * I tried using only [ps2id id=’om’] and enabling the option “Keep the current 
   element highlighted until the next one … ” but that resulted in the menu-alternativ
   only beening hightlighted while the taget was in sight.
 * Then I tried [ps2id_wrap id=’om’] and [/ps2id_wrap] in another text-block at 
   the end of the section but [/ps2id_wrap] is simply displayed as text.
 * Any ideas as to what to do?
 * Thanks again for a great plugin!
 * Best regards,
    Andreas Andersson
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fclosing-wrap-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/closing-wrap-shortcode/#post-9490770)
 * I can’t really say why `[/ps2id_wrap]` is displayed as text. Maybe some other
   plugin or script is affecting the visual editor(?)
 * I tried checking your URL (`test.apologia.se`) but for some reason it freezes
   my browser. Can you try adding the shortcodes in the text tab of the post editor?
 *  Thread Starter [anderssonolofandreas](https://wordpress.org/support/users/anderssonolofandreas/)
 * (@anderssonolofandreas)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/closing-wrap-shortcode/#post-9494030)
 * Thanks for the quick reply! I tried that as well with the same result.
 * The site should be viewable now =)
 * Does the shortcodes [ps2id_wrap …] and [/ps2id_wrap] need to be inside the same
   div?
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/closing-wrap-shortcode/#post-9495387)
 * The shortcode can normally be inside any HTML div and can include multiple divs
   or other HTML elements.
 * On visual composer though, it can only be placed within the same composing block/
   element. I’m not sure if this is the case in your implementation(?)
 * With visual composer you can give any of your composing elements an id (visual
   composer has an id field for each block), so maybe you can use this id if you
   want.
 *  Thread Starter [anderssonolofandreas](https://wordpress.org/support/users/anderssonolofandreas/)
 * (@anderssonolofandreas)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/closing-wrap-shortcode/#post-9495604)
 * I see!
 * Putting the ID in the row works great, thank you very much!
 * One question remains for me: after adding the ID to all row still only some of
   them get the class _mPS2id-t and seems to be recognized by the plugin. You can
   check the site now.
 * Once again thank you so much for the support!
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/closing-wrap-shortcode/#post-9498227)
 * `_mPS2id-t` class is added on the targets that have a link (somewhere on the 
   page) that points to them (to those targets).
    If a section has an id but no 
   link is pointing to this section, `_mPS2id-t` class won’t be added because it’s
   not needed by plugin’s script. Not sure if this is what you ask(?)
 *  Thread Starter [anderssonolofandreas](https://wordpress.org/support/users/anderssonolofandreas/)
 * (@anderssonolofandreas)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/closing-wrap-shortcode/#post-9499146)
 * Ah ok!
 * The issue was solved by it self – I was simple lacknig patience =)
 * Thank’s for your help, now everything is wokring great when I use an ID for the
   rows instead.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘closing wrap shortcode’ is closed to new replies.

 * ![](https://ps.w.org/page-scroll-to-id/assets/icon-256x256.png?rev=1401043)
 * [Page scroll to id](https://wordpress.org/plugins/page-scroll-to-id/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-scroll-to-id/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-scroll-to-id/)
 * [Active Topics](https://wordpress.org/support/plugin/page-scroll-to-id/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-scroll-to-id/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-scroll-to-id/reviews/)

## Tags

 * [wrap](https://wordpress.org/support/topic-tag/wrap/)

 * 6 replies
 * 2 participants
 * Last reply from: [anderssonolofandreas](https://wordpress.org/support/users/anderssonolofandreas/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/closing-wrap-shortcode/#post-9499146)
 * Status: resolved