• Resolved anderssonolofandreas

    (@anderssonolofandreas)


    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 to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author malihu

    (@malihu)

    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

    (@anderssonolofandreas)

    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

    (@malihu)

    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

    (@anderssonolofandreas)

    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

    (@malihu)

    _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

    (@anderssonolofandreas)

    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.