# Accordion via an external link / URL with hash

**URL:** <https://forum.pinegrow.com/t/accordion-via-an-external-link-url-with-hash/3189>\
**Category:** Beginners\
**Created:** [July 27, 2019, 6:50pm UTC](https://forum.pinegrow.com/t/accordion-via-an-external-link-url-with-hash/3189 "2019-07-27T18:50:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dominic](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Dominic](https://forum.pinegrow.com/u/Dominic)\
**Post date:** [July 27, 2019, 6:50pm UTC](https://forum.pinegrow.com/t/accordion-via-an-external-link-url-with-hash/3189/1 "2019-07-27T18:50:26Z")

</div>

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                 
            |                         
        |                     
    |                     
    |
```

---

<div class="post-metadata">

**Author:** ![Dominic](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Dominic](https://forum.pinegrow.com/u/Dominic)\
**Post date:** [August 3, 2019, 4:42pm UTC](https://forum.pinegrow.com/t/accordion-via-an-external-link-url-with-hash/3189/2 "2019-08-03T16:42:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Dominic](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Dominic](https://forum.pinegrow.com/u/Dominic)\
**Post date:** [August 7, 2019, 6:06pm UTC](https://forum.pinegrow.com/t/accordion-via-an-external-link-url-with-hash/3189/3 "2019-08-07T18:06:41Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![m-artin](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/m-artin/32/1447_2.png) [@m-artin](https://forum.pinegrow.com/u/m-artin)\
**Post date:** [August 10, 2019, 7:52pm UTC](https://forum.pinegrow.com/t/accordion-via-an-external-link-url-with-hash/3189/4 "2019-08-10T19:52:56Z")

</div>

Maybe this stack overflow answer can help you:

> <https://stackoverflow.com/questions/22254248/bootstrap-3-expand-accordion-from-url/33444574#33444574>

Please make sure to include jQuery or the lightweight equivalent [Zepto](https://zeptojs.com), to get it work with the code in the linked answer.

---

<div class="post-metadata">

**Author:** ![Dominic](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Dominic](https://forum.pinegrow.com/u/Dominic)\
**Post date:** [October 2, 2019, 11:08am UTC](https://forum.pinegrow.com/t/accordion-via-an-external-link-url-with-hash/3189/5 "2019-10-02T11:08:34Z")

</div>

Hi Martin, thanx for your posting. Its running!
