Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Toggle Content only on mobile #906839

    Hi,

    Thank you for the answer. But it’s not the solution I am looking for. The content should be visible on desktop and not on mobile. It’s the same element that should be hidden on mobile and not on desktop. It’s not a different element for each type of device. I will ask a developer.

    Best regards,
    Johan

    • This reply was modified 6 years, 10 months ago by johan5stars.
    in reply to: Toggle Content only on mobile #906237

    Hi Ismael,

    Yes I’m referring to “The Research” section. I’ve tried the Accordion element but it’s not giving exactly the same results.

    If I had the following shortcode, the Accordion and the content below will not be displayed on desktop. It will appear only on smartphone.

    [av_toggle_container initial='0' mode='accordion' sort='' styling='' colors='' font_color='' background_color='' border_color='' av-desktop-hide='aviaTBav-desktop-hide' av-medium-hide='aviaTBav-medium-hide' av-small-hide='aviaTBav-small-hide']
    [av_toggle title='Title 1' tags='']
    CONTENT 1
    [/av_toggle]
    [av_toggle title='Title 2' tags='']
    CONTENT 2
    [/av_toggle]
    [/av_toggle_container]

    On desktop, the content should be displayed as usual:

    <h2>Title 1</h2>
    CONTENT 1…
    <h2>Title 2</h2>
    CONTENT 2…

    On smartphone, the content should be hidden:

    [av_toggle title='<h2>Title 1</h2>' tags='']
    HIDDEN CONTENT 1…
    [/av_toggle]
    [av_toggle title='<h2>Title 2</h2>' tags='']
    HIDDEN CONTENT 2…
    [/av_toggle]

    Thank you,
    Johan

    in reply to: Toggle Content only on mobile #905513

    Hey Ismael,

    Thank you for your reply. Here is a link to a site with the same feature. If you display it on a mobile phone on scroll down to the table of content (The Research), the content is not displayed. You will need to expand each chapter to reveal the text.
    If it requires custom script, do you provide this service or could you recommend a developper?
    Best regards,
    Johan

Viewing 3 posts - 1 through 3 (of 3 total)