Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Baden

    (@baden03)

    can you share a link to the page?
    Are you using the shortcode or the roll-your-own method?
    do you have any javascript errors on your site?

    Thread Starter tsanibaytchev

    (@tsanibaytchev)

    of course. here is the link: The page is on cirilycs unfortunately, but you can still see the expanded text:
    https://tsani.eu/wordpress/#!?page_id=628

    I have to admit I am very new to all this and these terms, but I guess I use short code. I can post the whole script if you like as well.

    Thank you very much for your help! This means a lot to me.

    Thread Starter tsanibaytchev

    (@tsanibaytchev)

    I don’t know why the link above doesn’t work, but if you just click the second button from top to bottom. It’s that page.

    Thread Starter tsanibaytchev

    (@tsanibaytchev)

    Here is one of the collapsed menus:

    [divider height=”13″]
    [expand title=”Стандартен HD пакет”]

     

    • Видеофилм с кристално качество в резолюция <span style=”font-style: italic;”>1920 </span>х <span style=”font-style: italic;”>1080 </span>пиксела;
    • До 12 астрономически часа присъствие на видеооператор за град Добрич и 11 извън него, в деня на сватбата;
    • Професионален монтаж на сватбеното тържество<span style=”font-style: italic;”>, </span>озвучен с музика<span style=”font-style: italic;”>, </span>видео ефекти<span style=”font-style: italic;”>,</span><span style=”font-style: italic;”>?</span>цветови корекции<span style=”font-style: italic;”>, </span>аудио обработка<span style=”font-style: italic;”>;</span>
    • Сватбен видеоклип?с подбрани моменти от сватбения ден;
    • Възможност за сваляне на имидж файловете на блу-рей дисковете от сървъра на сайта ни.
    • Възможност за надграждане на опции ?след сватбения ден.

    <div class=”page” title=”Page 2″></div>
    [/expand]

    Plugin Author Baden

    (@baden03)

    ah so! the reason this is not being collapsed is that your content is being loaded dynamically. Does your theme, Right Now, allow you to trigger a callback function once the content is loaded? If so, you just need to trigger the javascript function:

    collapse_init();

    once the content has finished loading.

    Thread Starter tsanibaytchev

    (@tsanibaytchev)

    Thank you so much! But can you tell me what to do like for a complete newbie.
    Shall I copy that line at the end of the page?

    I’m sorry for the stupid questions, I really don’t know much about this.

    The funny thing is that I also installed the same plugin to my personal page and it works like a charm, but there is apparently something to do with the RIGHT NOW theme of my business page.

    Thread Starter tsanibaytchev

    (@tsanibaytchev)

    I also found out another thing. When I make so that the link on the button is opened on new page it works! But it causes another problem with the video playing on two different pages which is very annoying for the client.

    When opened properly on the same page it opens expanded. I will get crazy!

    Thread Starter tsanibaytchev

    (@tsanibaytchev)

    So my question and last hope is where exactly to add this line:

    collapse_init();

    Thank you very much for your time!

    Plugin Author Baden

    (@baden03)

    The answer really depends on our your theme is built.

    Since first the page loads, triggering the plugin init function… then the content is dynamically loaded in using an ajax call, the content does not get the initial collapsed status applied.

    Normally, there is some kind of callback area in your theme options that allow you to fire a function once the content is loaded. Your really need to contact the theme support and ask how to fire a function once the content loads. If you would like us to handle it for you, we would be happy to support you with a purchase of our Collapse-Pro-Matic plugin.

    Your best plan of action would be:
    1. Check your theme options page
    2. Contact the theme support regarding a callback hook on content load
    3. Go pro and we’ll figure it out for you

    hope this helps point you in the right direction.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Text is expanded (collapsed) when page loads.’ is closed to new replies.