Accordion via an external link / URL with hash

Hello

I think about the change from Muse to Pinegrow. With the trial version, I’m just testing the possibilities of the Accordion. The standard id ist “#collapse2”, but the Directlink “index.html#collapse2” does not work. Where is the Problem? Should I do something in Javascript oder jQuery? Thank you in advance!

I use this Standard Code for the Accordion:

div#panels1(role="tablist")
    |                     
    div.card
        |                         
        div.card-header(role="tab")
            |                             
            h5.mb-0
                |                                 
                a(data-toggle="collapse", href="#collapse1", aria-expanded="true", aria-controls="collapse1")                                     Collapsible Group Item #1                                
                |                             
            |                         
        |                         
        div#collapse1.collapse.show(role="tabpanel", aria-labelledby="headingOne", data-parent="#panels1")
            |                             
            div.card-body
            |                         
        |                     
    |                     
    div.card
        |                         
        div.card-header(role="tab")
            |                             
            h5.mb-0
                |                                 
                a.collapsed(data-toggle="collapse", href="#collapse2", aria-expanded="false", aria-controls="collapse2")                                     Collapsible Group Item #2                                
                |                             
            |                         
        |                         
        div#collapse2.collapse(role="tabpanel", aria-labelledby="headingTwo", data-parent="#panels1")
            |                             
            div.card-body                 
            |                         
        |                     
    |                     
    |

Hello Guys
Can someone help me please? I want to index the individual sections at google. Only if I can realize these links with my abilities it makes sense for me to decide for Pinegrow.

Many thanks
Dominic

Really nobody who can help me?
In the meantime I bought Pinegrow anyway.
I have continued to work on my site, but I still have this problem.

This is what the matter looks like: https://www.gaut.ch/tmp/index.html

I would be glad, if somebody can get in touch with the professionals again. Thanks a lot!
Dominic

Maybe this stack overflow answer can help you:

Please make sure to include jQuery or the lightweight equivalent Zepto, to get it work with the code in the linked answer.

Hi Martin, thanx for your posting. Its running!

1 Like