Support ForumToggle a accordion section through a menulink (url) – Support Forum https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/feed/ Sat, 27 Apr 2024 21:26:22 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15732 <![CDATA[Toggle a accordion section through a menulink (url)]]> https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15732 Fri, 29 Sep 2017 13:26:59 +0000 Bram Hi there!

I like to toggle a accordion section true a menulink (url. I tried to link to an anchor point in de title and thats work fine. But now I want to open that section of the accordion by clicking de menuitem.

Is there a whay to Toggle that section like #ElementID/[toggle] ?

Thanks in advance!

]]>
https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15739 <![CDATA[Reply To: Toggle a accordion section through a menulink (url)]]> https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15739 Mon, 02 Oct 2017 07:14:54 +0000 IshYoBoy Hey,

Just to be sure we understand you have a link in your main menu linking to that given toggle and would like to be opened when a user clicks on the link in the menu?

If this is right, then unfortunately this is not implemented. It will have to be implemented separately.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15756 <![CDATA[Reply To: Toggle a accordion section through a menulink (url)]]> https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15756 Tue, 03 Oct 2017 18:37:34 +0000 Bram Hi!

That is exactly what I mean.
Can you please explain how I implement that?

Thanks.

]]>
https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15761 <![CDATA[Reply To: Toggle a accordion section through a menulink (url)]]> https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15761 Wed, 04 Oct 2017 06:00:31 +0000 IshYoBoy Hi Bram,

here is simple javascript example what you can use for opening toggle/accordion via anchor link. Don’t hesitate adjust this code exactly as you need.

Simple add this short code into your child theme js file.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15771 <![CDATA[Reply To: Toggle a accordion section through a menulink (url)]]> https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15771 Thu, 05 Oct 2017 18:19:06 +0000 Bram Hi!

I am afraid this goes above my head..

Do I have to make a new js file with above content and place it in een new ‘assets/js’ folder in the childtheme? If so, what name should I give him?

Or am I totally wrong? )-:

Cheers!

]]>
https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15775 <![CDATA[Reply To: Toggle a accordion section through a menulink (url)]]> https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15775 Fri, 06 Oct 2017 08:26:16 +0000 IshYoBoy Hi Bram,

yes you’re right.
Simple create file my-custom.js in /assets/js/my-custom.js of your child theme.

And into the file my-custom.js insert js code. Code provided above was simple example, here is solution for you, that should works with your theme.

All of this code was taken from parent theme and we added only this part:

Now you have to add this part of code into functions.php of your child theme:

If this function already exist, add only these two lines:

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15787 <![CDATA[Reply To: Toggle a accordion section through a menulink (url)]]> https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15787 Sat, 07 Oct 2017 11:25:28 +0000 Bram Okay,
I did what you describe but unfortunately it does not work.

I followed the steps on my test account: demo.conceptlijn.nl/tuinierstudent

Would you like to look into the admin? I have already created an IshYoBoy account. (-;

Thanks in advance!

]]>
https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15790 <![CDATA[Reply To: Toggle a accordion section through a menulink (url)]]> https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15790 Mon, 09 Oct 2017 07:06:44 +0000 IshYoBoy Hey Bram,

we have checked it and we see, that your file my-custom.js is broken.
Everywhere are backslash chars \.
Please fix it and also please check, if you don’t have any JavaScript errors on the page.

Let us know if it helped.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15791 <![CDATA[Reply To: Toggle a accordion section through a menulink (url)]]> https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15791 Mon, 09 Oct 2017 07:07:21 +0000 IshYoBoy https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15793 <![CDATA[Reply To: Toggle a accordion section through a menulink (url)]]> https://support.ishyoboy.com/forums/topic/toggle-a-accordion-section-through-a-menulink-url/#post-15793 Mon, 09 Oct 2017 19:25:24 +0000 Bram