• Resolved Leonardo T. Oliveira

    (@olivleonardo)


    Dear friends,

    I’m suffering for weeks to solve this, please, help!

    I’d like to put under a collapsible title a whole block of content – including other collapsible titles! -, not only one single line.

    I’m talking about lists and sublists with descriptions, like this: http://en.euterpe.blog.br/books-sites. There are different font sizes too (different heading levels), under which there are lists and descriptions in paragraphs, and I’d like to put the content under each of these titles collapsed in each of them.

    How do I deal with it to make it work like Wikipedia articles for mobile?

    Thank you very very much!

    Leonardo

    https://wordpress.org/plugins/jquery-collapse-o-matic/

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

    (@baden03)

    what have you tried?
    do you have a link to your current status?

    Thread Starter Leonardo T. Oliveira

    (@olivleonardo)

    Hi!

    I’ve tried to wrap a list with its title and respective descriptions below each item, like:

    <h1>[expand title=”Title” trigclass=”noarrow” filter=”true”]</h1>

    • Link 1

    Description.

    • Link 2

    Description.

    • Link 3

    Description.

    • Link 4

    Description.
    [/expand]

    That is, everything inside [expand (…)] and [/expand]. But it messes with the page and simply doesn’t apply.

    I remember having seen one specific code for lists, but if I change the formatting between links and descriptions it doesn’t apply too.

    Am I getting to be clear? I’d like to do something like this: https://en.m.wikipedia.org/wiki/Ludwig_van_Beethoven. In this mobile version of a Wikipedia article, you can collapse or expand each chapter, like “Biography”, “Character”, etc., and under each of these titles there is more than one line of text or a mere list: there is a block of varied content, even images! I don’t need to collapse images, but I’d like to collapse blocks of content like in this article.

    Thread Starter Leonardo T. Oliveira

    (@olivleonardo)

    Ah, and there will be subtitles that should be collapsible too, like in this hypothetical structure: http://en.euterpe.blog.br/test

    It would be great to get it done! Thanks!

    Plugin Author Baden

    (@baden03)

    Try:

    [expand title="Title" trigclass="noarrow" filter="true" tag="h1"]
    Link 1
    Description.
    ...
    [/expand]

    Thread Starter Leonardo T. Oliveira

    (@olivleonardo)

    Yes, man! It’s happening!

    I had to remove the tag “<strong>” from the titles, or it would mess with the entire page. But in the end I liked it without the “strong” effect!

    Now there is only one last detail!

    Look: http://en.euterpe.blog.br/books-sites

    If you open the subtitles, each of them brings at the bottom of its list those buttons of “follow me” and “like” from social networks. Did you already know this kind of problem? Any idea of how to fix it? My template is “Virtue Premium” from Kadence Themes, and this is a page actually, not a blog post.

    Thank you very very much!

    Plugin Author Baden

    (@baden03)

    yes, simply un-tick the ‘filter content’ checkbox in the plugin options page.

    Thread Starter Leonardo T. Oliveira

    (@olivleonardo)

    Settings -> Collapse-O-Matic -> Content Filter: [ ] Apply filter (Apply the_content filter to target content)?

    Actually, it was already unmarked, and, of course, marking it also didn’t work. πŸ™

    We’re almost there! Any other idea?

    Thanks!

    Plugin Author Baden

    (@baden03)

    is there a setting in your social sharing plugin that can turn this off?

    Thread Starter Leonardo T. Oliveira

    (@olivleonardo)

    I asked directly in the forum of the plugin “AddToAny” (here: https://wordpress.org/support/topic/buttons-more-buttons-through-the-page?replies=6), and it was all about the shortcut filter=”true”!

    Now it is perfect! Thank you very much! πŸ˜€

    Plugin Author Baden

    (@baden03)

    glad you got the issue resolved.

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

The topic ‘Whole content under hidden title’ is closed to new replies.