Subscribe On YouTube

Join other subscribers and enjoy other Divi video tutorials!

How To Expand And Collapse Text In Divi (Like A Read More Toggle)

Nelson Miller Profile Orange
In this tutorial I will show you how to make text that can collapse and expand with a read more button in Divi.

▶️ Please watch the video above to get all the exciting details! 👆

Which Modules Will This Work On?

We are going to show you how to do this with two of the main modules that would normally need this, the Text module and the Blurb module. We have instructions and code for both of these, and it will be relatively easy to do.

I am going to focus on the Text module and then at the end show you the differences if you are using the Blurb module.

You could also do this to any module that has text, but it will be your responsibility to modify the code if you want to use another module. Off hand I couldn’t think of other modules that would be relevant, but if you have another user case then you will need to replace the CSS class selectors in our code to match those of the other module.

1. Add A Custom CSS Class To The Text Module

The first step is to add a custom CSS class to the specific Text module that you want to apply this effect. We use a custom class so that the snippet does not affect all the other Text modules on your site. Open the Divi Text module settings and go to the Advanced tab. Go to the CSS IDs & Classes toggle. Place the class “pa-toggle-text” in the CSS Class input field.

add custom CSS class to Divi text to expand and collapse

2. Add The jQuery Snippet To Your Site

We are going to use jQuery to create the main functionality of this expanding read more text toggle. This will be complemented with some CSS in the next step, but for now the task is to copy the jQuery snippet and add it to your website. I explain this snippet in the video, so it will be super helpful to watch along as you go through the steps here.

Where To Paste The jQuery Code

1. Divi Assistant
If you are using our Divi Assistant plugin, simply paste the code in the jQuery tab in the custom code window in the Divi Visual Builder.

2. Child Theme
If you are using a child theme, paste this code into the scripts.js file (don't forget to remove the <script> tags at the beginning and end). If you don't have a child theme, you can generate a child theme directly on your site or download our free child theme.

3. Divi Theme Options Integration
Otherwise, paste this code in your Divi>Theme Options>Integrations tab in the "Add code to the < head > of your blog" code area.

If you need help understanding where to paste the code, please check out our complete guide about where to add custom code In Divi.

jQuery For Text Module

<script>
    jQuery(document).ready(function() {
        var text_expand_text = "Expand To Read More";
        var text_collapse_text = "Collapse To Read Less";
        var text_expand_icon = "3";
        var text_collapse_icon = "2";

        jQuery(".pa-toggle-text").each(function() {
            jQuery(this).append('<div class= "pa-text-expand-button"><span class= "pa-text-collapse-button">' + text_expand_text + ' <span class= "pa-text-toggle-icon">' + text_expand_icon + '</span></div>');
            jQuery(this).find(".pa-text-collapse-button").on("click", function() {
                jQuery(this).parent().siblings(".et_pb_text_inner").toggleClass("pa-text-toggle-expanded");
                if (jQuery(this).parent().siblings(".et_pb_text_inner").hasClass("pa-text-toggle-expanded")) {
                    jQuery(this).html(text_collapse_text + "<span class= 'pa-text-toggle-icon'>" + text_collapse_icon + "</span>");
                } else {
                    jQuery(this).html(text_expand_text + "<span class= 'pa-text-toggle-icon'>" + text_expand_icon + "</span>");
                }
            })
        })
    }) 
</script>

3. Understand The Code & Make Any Edits

Variables

The first part of this snippet is a list of four variables. These all start with the “var” and are easy to fine. These are used to make it easier for you to find and customize the code. Do not change anything else in the text, we are using this method so that it is easier for you and does not require any edits to the actual code.

Changing The Text

The only part that you should edit in the code is in the variables. If you want to change the text or the icon, you can see that in the first part of the code. Just look for the text “Expand To Read More” or “Collapse To Read Less” and feel free to change that text to whatever you want!

Changing The Icons

If you want to use a different icon, you are welcome to do that. You can choose from any of the built-in ETModules font family icons. You can change the code in the variables.

4. Add The CSS Snippet To Your Site

The last step is to add the CSS to adjust the styling and add some of the functionality. You can copy the entire snippet below and paste it into your site. Each item in the snippet has a helpful comment, and I will also explain what each item does in the video, so be sure to watch that as well. 

Where To Paste The CSS Code

1. Divi Assistant
If you are using our Divi Assistant plugin, simply paste the code in the CSS tab in the custom code window in the Divi Visual Builder.

2. Child Theme
If you are using a child theme, paste this code into the style.css file. If you don't have a child theme, you can generate a child theme directly on your site or download our free child theme.

3. Divi Theme Options Integration
Otherwise, paste this code in your Divi>Theme Options>Custom CSS code box.

If you need help understanding where to paste the code, please check out our complete guide about where to add custom code In Divi.

/*collpse and set the height of the toggle text*/

.pa-toggle-text .et_pb_text_inner {
	max-height: 200px;
	transition: max-height 0.3s ease-out;
	overflow: hidden;
}


/*add gradient to the collapsed text*/

.pa-toggle-text .et_pb_text_inner:after {
	content: "";
	display: inline-block;
	position: absolute;
	pointer-events: none;
	height: 100px;
	width: 100%;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: linear-gradient(0deg, #fff 10%, transparent);
}


/*style the expand text link*/

.pa-toggle-text .pa-text-expand-button {
	padding: 0.5em;
	text-align: center;
	color: #00d263!important;
}


/*change the curor to a pointed when hovering over the expand text link*/

.pa-toggle-text .pa-text-expand-button span {
	cursor: pointer;
}


/*define the font family for the toggle icon*/

.pa-toggle-text .pa-text-expand-button .pa-text-toggle-icon {
	font-family: ETMODULES, "sans-serif";
}


/*set the max height and transition of the expanded toggle*/

.pa-toggle-text .pa-text-toggle-expanded {
	max-height: 2000px;
	transition: max-height 0.3s ease-in;
}


/*hide the gradient when the toggle is expanded*/

.pa-toggle-text .pa-text-toggle-expanded.et_pb_text_inner:after {
	background: none;
}

Using The Blurb Module Instead

I decided not to repeat every step for the Blurb module here in the writtne post, but you can watch the video if you need any help. The process is exactly the same! It just uses slightly different code, and a difference custom class of “pa-toggle-blurb” instead. So go ahead and try it! Add your Blurb module, add the jQuery, add the CSS, and let me know if you have fun!

Where To Paste The jQuery Code

1. Divi Assistant
If you are using our Divi Assistant plugin, simply paste the code in the jQuery tab in the custom code window in the Divi Visual Builder.

2. Child Theme
If you are using a child theme, paste this code into the scripts.js file (don't forget to remove the <script> tags at the beginning and end). If you don't have a child theme, you can generate a child theme directly on your site or download our free child theme.

3. Divi Theme Options Integration
Otherwise, paste this code in your Divi>Theme Options>Integrations tab in the "Add code to the < head > of your blog" code area.

If you need help understanding where to paste the code, please check out our complete guide about where to add custom code In Divi.

jQuery For The Blurb Module

<script>
    jQuery(document).ready(function() {
        var blurb_expand_text = "Expand To Read More";
        var blurb_collapse_text = "Collapse To Read Less";
        var blurb_expand_icon = "3";
        var blurb_collapse_icon = "2";

        jQuery(".pa-toggle-blurb").each(function() {
            jQuery(this).append('<div class= "pa-blurb-expand-button"><span class= "pa-blurb-collapse-button">' + blurb_expand_text + ' <span class= "pa-blurb-toggle-icon">' + blurb_expand_icon + '</span></div>');
            jQuery(this).find(".pa-blurb-collapse-button").on("click", function() {
                jQuery(this).parent().siblings(".et_pb_blurb_content").find(".et_pb_blurb_description").toggleClass("pa-blurb-toggle-expanded");
                if (jQuery(this).parent().siblings(".et_pb_blurb_content").find(".et_pb_blurb_description").hasClass("pa-blurb-toggle-expanded")) {
                    jQuery(this).html(blurb_collapse_text + "<span class= 'pa-blurb-toggle-icon'>" + blurb_collapse_icon + "</span>");
                } else {
                    jQuery(this).html(blurb_expand_text + "<span class= 'pa-blurb-toggle-icon'>" + blurb_expand_icon + "</span>");
                }
            })
        })
    }) 
</script>

Where To Paste The CSS Code

1. Divi Assistant
If you are using our Divi Assistant plugin, simply paste the code in the CSS tab in the custom code window in the Divi Visual Builder.

2. Child Theme
If you are using a child theme, paste this code into the style.css file. If you don't have a child theme, you can generate a child theme directly on your site or download our free child theme.

3. Divi Theme Options Integration
Otherwise, paste this code in your Divi>Theme Options>Custom CSS code box.

If you need help understanding where to paste the code, please check out our complete guide about where to add custom code In Divi.

CSS For The Blurb Module

/*collpse and set the height of the toggle text*/

.pa-toggle-blurb .et_pb_blurb_description {
	max-height: 200px;
	transition: max-height 0.3s ease-out;
	overflow: hidden;
}


/*add gradient to the collapsed text*/

.pa-toggle-blurb .et_pb_blurb_description:after {
	content: "";
	display: inline-block;
	position: absolute;
	pointer-events: none;
	height: 100px;
	width: 100%;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: linear-gradient(0deg, #fff 10%, transparent);
}


/*style the expand text link*/

.pa-toggle-blurb .pa-blurb-expand-button {
	padding: 0.5em;
	text-align: center;
	color: #00d263!important;
	font-weight: bold;
}


/*change the curor to a pointed when hovering over the expand text link*/

.pa-toggle-blurb .pa-blurb-expand-button span {
	cursor: pointer;
}


/*define the font family for the toggle icon*/

.pa-toggle-blurb .pa-blurb-expand-button .pa-blurb-toggle-icon {
	font-family: ETMODULES, "sans-serif";
}


/*set the max height and transition of the expanded toggle*/

.pa-toggle-blurb .pa-blurb-toggle-expanded {
	max-height: 2000px;
	transition: max-height 0.3s ease-in;
}


/*hide the gradient when the toggle is expanded*/

.pa-toggle-blurb .pa-blurb-toggle-expanded.et_pb_blurb_description:after {
	background: none;
}
Categories: Divi CSS Tutorials

Subscribe For More Things Like This!

At the start of each month, we send out a recap newsletter from the month before with family news, Divi news, our latest tutorials, and product news. Occasionally, if the news is too exciting to wait, we will send out another email separate from the monthly newsletter. That’s what you get when you subscribe, and of course you can unsubscribe if you are no longer interested!

Blog Post Optin

Leave A Response!

By commenting you agree to our Blog & YouTube Comments Policy

155 Comments

Comments By Members

  1. Reed <span class="comment-author-role-label"><a href="https://wordpress-292293-1617718.cloudwaysapps.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

    Is there a way to have a read more toggle open the expanded contents downward rather than from the center?

    For instance, if I have a row with three columns and a text module of varying length in each column (all with the toggle CSS class applied), when I open each toggle currently, they expand from the vertical center of the module upward and downward as necessary. This then throws off the top alignment of the text modules if they’re all open as the text in each is a different length (height).

    Ideally, I’d l like to be able to have the hidden contents expand downward only to somewhat preserve the look and feel of a table when I have stacked text modules in multiple columns.

    Thanks for all that you do!

    Reply
  2. Michal <span class="comment-author-role-label"><a href="https://wordpress-292293-1617718.cloudwaysapps.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

    Hi Nelson,
    Thanks for this tutorial! I have a question about multi language. I have a website with 3 different language and how i can make it to work with this script?
    Thank you for your advise.
    Michal

    Reply

Comments By Others

  1. Hemant Gaba

    Thanks for sharing the code. We’ll test it and update the guide.

    Reply
  2. Hemant Gaba

    Hi Caleb!

    I’m afraid the code won’t work for the Person module. However, we’ll provide more solutions soon for other modules.

    Reply
  3. Hemant Gaba

    Hi Francesco!

    We will add the feature in our feature request list and will provide a solution soon.

    Reply
  4. Hemant Gaba

    Hi Bhushan!

    I can see the script and the styles are added for the customization, but the class is not applied in any element of the page. Can you please follow the full guide again and let me know if it works?

    Reply
  5. Bhushan

    Hi Hemant,

    Firstly, let me thank to Neelson for this tutorial.
    I am at the same situation with the exact problem that Dawn has mention.

    If you can see this link where I have been using this code:
    https://tractordost.com/brand/johndeere/

    After collapsing back the text, it should scroll back to where the “Read more” button is.

    Thanks.

    Reply
  6. Nelson Lee Miller (aka The Divi Teacher) <span class="comment-author-role-label author-label">Author</span>

    Hi Zak,
    I am confused what you mean here. This tutorial is not like a pagination read more, but more like an accordion. I would assume their plugin has a load more pagination feature built-in to their loop.

    Reply
  7. Nelson Lee Miller (aka The Divi Teacher) <span class="comment-author-role-label author-label">Author</span>

    Hi Peter,
    I don’t understand what you mean about 200+ or 10 item accordion. This tutorial is not related to accordions. Please clarify and share a link and describe what you mean is not working.

    Reply
  8. Hemant Gaba

    Hi there!

    The customization has not yet been tested for the post-content module.

    Reply
  9. freek

    Hi, Does anyone know what code I use for the post content module instead of the text module?
    Something like this: (et_pb_module et_pb_post_content et_pb_post_content_0_tb_body pa-toggle-text)
    I am struggling with this …..

    THX Freek

    Reply
  10. Hemant Gaba

    Hi Alani!

    You’re very welcome! To change the the color of the read more text, find the following piece of code in the above CSS and change the color in it.

    .pa-toggle-text .pa-text-expand-button {
    padding: 0.5em;
    text-align: center;
    color: #00d263!important;
    }

    Hope it helps!

    Reply
  11. Hemant Gaba

    Hi Eric!

    The customization is not keyboard accessible. We will look into it further. You can try basic keyboard shortcuts for now.

    Reply
  12. Hemant Gaba

    Hi Laura!

    There is no additional code required for it. There must be a conflict with the jQuery on your end. Try disabling the cache plugin and Defer jQuery And jQuery Migrate option in the Performace tab and see if it helps.

    If the issue persists, share the page URL with me to investigate further.

    Reply
  13. Hemant Gaba

    Hi Asif!

    We’re aware of the issue. A fix will be provided soon.

    Reply
  14. Hemant Gaba

    Hi Shahzaib!

    Could you please share some more details of the feature you’re looking for?

    Reply
  15. Hemant Gaba

    Margriet!

    Could you please share the URL of the page where you are applying the code to check the issue further?

    Reply
  16. Hemant Gaba

    Hi Amber!

    The Woo Woo Product Description module is currently in our upcoming features. I’m afraid we can’t provide you with an ETA right now. Stay tuned!

    Reply
  17. Amber

    Did you ever figure out how to modify the code to use on a woo product description? This is what I need to do.

    Reply
  18. Kurt M

    I’m working on a replacement website for a non-profit and using the Woo database for the communities that they serve. When a local community coordinator has a particularly long biography, I’d like to collapse it. I could go to a text field but there are over 200 community coordinators and I would prefer to keep it in the database. Here is an example of a long bio by Primitiva Roca in the hibiscus block:
    https://bcfdev.org/product/oruro/
    Do you have any suggestions?

    Reply
  19. Hemant Gaba

    Hi Wolter!

    The same code should work for all languages. Why are you trying to add a different snippet for other language pages?

    Reply
  20. Hemant Gaba

    Hi Gemma!

    We’re aware of the issue and working on it. The solution will be posted soon. Thank you!

    Reply
  21. Gemma

    Hi, we have used this code and it opens correctly when you press ‘Read more’ however on desktop and mobile when you press ‘read less’ it jumps to a random part of the page not returning them to the text module they expanded. Any one help? As Divi support said they can’t help as it’s the code. Thanks for your help, not sure who to ask and spotted this. Staging development site link added below for you to see.

    Reply
  22. VJ

    Hello, it should go back to top of collapsed text (scroll back effect) when u click on “Collapse To Read Less”. Otherwise it leave you wherever expanded text end. This is really problem for long text – it cause problem for users to miss a lot of content on page, especially on mobile phone.

    Reply
  23. Hemant Gaba

    Hi Philip!

    It is not possible right now. We will look into it and come up with a solution soon. Thanks for letting us know.

    Reply
  24. Nelson Lee Miller (aka The Divi Teacher) <span class="comment-author-role-label author-label">Author</span>

    I’m not sure what you mean. The Divi Responsive Helper does have a collapse feature for the menu submenus, but is not related to accordions in any way, and this tutorial would be used instead of an accordion, otherwise just use an accordion.

    Reply
  25. Shannon

    Never mind, solved it 🙂 Anywhere in the jquery or css that it said .et_pb_text_inner, I switched it with .et_pb_team_member_description.

    Reply
  26. Shannon

    I was able to use his original code for the person module. Anywhere in the jquery or css that it said .et_pb_text_inner, I switched it with .et_pb_team_member_description.

    Reply
  27. Hemant Gaba

    Hey David,

    After analyzing your code, I realized that your jQuery is not right and that’s why the issue is happening. I will definitely help you but first I need to know the layout of the person module that you are having on the website as from your CSS I am imagining that you want to show and collapse only the description and not the photograph but I need to have an exact idea of what you are trying to achieve.

    Reply
  28. Lauren

    Hi Nelson, thanks for this helpful information! Is there a way to adjust the code so it functions only in table/mobile view? Would this be accomplished with a media query in the CSS? Thanks again!

    Reply
  29. Diana

    Hello, Nelson. Thanks for your valuable information.
    Could you please tell me how to do it in the “read more” part, how to do it inside a box. That’s possible?

    Thank you

    Reply
  30. Hemant Gaba

    Hi Jane!

    Please add the following code to make the link work as button on hover with different color and background:

    .pa-toggle-text span.pa-text-collapse-button:hover {
    color: red;
    background: #000;
    padding: 20px;
    transition: all 0.5s ease-in-out;
    }

    Let me know how it goes!

    Reply
  31. Hemant Gaba

    Hi Reed!

    I’m glad the it worked for you. Thank you for sharing the solution. To make the customization work on specific screen size, add the above CSS code in the media query.

    @media all and (min-width: 981px){
    //code
    }

    Let me know how it goes!

    Reply
  32. Reed <span class="comment-author-role-label"><a href="https://wordpress-292293-1617718.cloudwaysapps.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

    For us, it turned out that all we needed to do was to disable the “equalize column widths” setting and that populated everything downward rather than from the center.

    Follow-up question: is it possible to limit this to select devices? For instance, if I wanted to have the toggle “Read More” text only apply to anything over 981px?

    Reply
  33. Hemant Gaba

    Hi Flo!

    I have checked and the text is collapsing and expanding without any issue on the page you have shared above. Is the issue resolved?

    Reply
  34. Hemant Gaba

    Hi Reed!

    The requirement you have shared is outside scope of this guide. However, we will consider it and possibly create a new guide with it.

    Reply
  35. Hemant Gaba

    Thank you for sharing the website. I’m able to replicate the issue. We will update the guide soon. Stay tuned!

    Reply
  36. Arnold

    Hi, thank´s for the quick response.
    Here is the URL:
    https://www.petragell.com/text/
    If you click on “mehr…” it expands and if you click on “weniger” at the end of the text it callapses but it don´t go back to the beginning of the text.
    I use the code in a childtheme. Would be great if you have any idea what the problem could be.
    Thx in advance.

    Reply
  37. Hemant Gaba

    Hi there!

    Sorry, I did not understand the required feature properly. Currently, the “Collapse To Read Less” scrolls back to the point where the expansion started. Do you need to change the scroll back limit manually to a certain point?

    Reply
  38. Hemant Gaba

    Hi Louis!

    It seems you have removed the module now. Can you please add it again so that I can check further?

    Reply
  39. Hemant Gaba

    Hi Louie!

    It seems you have removed the module. Can you please add it again so that I can check further?

    Reply
  40. Hemant Gaba

    Hi Dawn!

    I have checked the page and it seems you have removed the collapse button and feature from the script. Can you please add the whole script again so that I can check again?

    Reply
  41. Hemant Gaba

    Hi Danielle!

    Everything works fine at our end. Could you please share the URL of the page where you are applying the code to check the issue further?

    Reply
  42. Hemant Gaba

    Hi Simone!

    Everything works fine at our end. Could you please share the URL of the page where you are applying the code to check the issue further?

    Reply
  43. Paul Foole

    Hi Hemant, thank you for the reply.

    After adding the class second-module and the code in theme options there was no result at all
    The url is placed in the form. On this page see
    under section RECENTCIES the first 2 columns. The first column has the new class en the second one the original.

    If you would be so kind to take a look.

    Thanks

    Reply
  44. Hemant Gaba

    Hi Paul!

    Please another class in the second text module, lets it be second-module. Then add the following code in Theme options:

    .second-module.pa-toggle-text .et_pb_text_inner {
    max-height: 150px;

    }

    .second-module.pa-toggle-text .pa-text-toggle-expanded{
    max-height: 2000px;
    }

    Let me know how it goes!

    Reply
  45. Hemant Gaba

    Hi Arnold!

    Everything works fine at our end. Could you please share the URL of the page where you are applying the code to check the issue further?

    Reply
  46. Hemant Gaba

    You are most welcome Solveig!

    We are glad to know that our guide helped you in some way. Stay tuned for more such guides.

    Reply
  47. Anna

    Thank you Krista this helped me so much!!! I was driving crazy not finding the error for iPhone & Safari! 😀

    Reply
  48. Alex

    Nevermind – there was a problem with the HTML. Managed to fix it by looking in the “Text” section of the editor (instead of the “Visual” editor). Wanted to make sure I replied to my own thread in the event that someone else is struggling with this and needs to find a solution.

    Reply
  49. southupp

    I had this issue only when viewing on Safari.. which apparently has a bug with gradient css. Found the answer!! never use “transparent” in css…

    “The problem is: –tw-gradient-from: transparent;
    Safari renders transparent as rgba(0,0,0,0) (maybe a safari bug?)

    If I change transparent to rgba(255,255,255,0) it looks good and as intended.”

    Here is link to thread where i found it.
    https://github.com/tailwindlabs/tailwindcss/issues/2985

    Reply
  50. Raffi Mardirossian

    In my personal case, on desktop I just get “READ MORE 3” (I don’t need the function on desktop).
    It’s written in black, if hiding is not possible, setting text in white will be acceptable.

    Reply
  51. Nelson Lee Miller (aka The Divi Teacher) <span class="comment-author-role-label author-label">Author</span>

    You can copy the code, change the custom class, modify any values and properties in the code. That’s all up to you, and if you need help with things like that you would need to hire a developer.

    Reply
  52. Hemant Gaba

    Hey there,

    You need to follow the instructions given in the guide to achieve the desired results.

    Reply
  53. Scott Winterroth

    Yeah, i’m trying to expand and collapse a very long bio in a person module. Can you post this code or fix the person’s above?

    Reply
  54. Hemant Gaba

    Hey Diaz,

    Could you please share the URL of the page where you are applying the code in order for me to check the issue on my end?

    Reply
  55. Hemant Gaba

    Hey Demitris,

    You can use height instead of max-height in the CSS Snippet and that will work for the desktop.

    For Tablets copy the code, place it between these curly brackets, and change the height value:
    @media all and (min-width: 768px) and (max-width: 980px){
    //place code here
    }
    For mobiles copy the code, place it between these curly brackets, and change the height value:
    @media all and (max-width: 768px){
    //Place code here
    }

    Let me know how it goes.

    Reply
  56. Hemant Gaba

    Hey Kurt,

    I have checked the URL provided and the code is working fine on this page. Just to confirm, as you mentioned that you have a lot of pages so do you want to implement this functionality on all the pages at once without going to each module?

    Reply
  57. Hemant Gaba

    Hey William,

    You can search for the Divi codes online and you will see all the codes that you can use.

    Reply
  58. William Munroe

    Ah, so the character L becomes a + in that font? Is there a table of the correspondence somewhere for future reference?

    Thanks so much!

    Reply
  59. Hemant Gaba

    Hey Konnie,

    Could you please share the URL of the website for me to investigate further?

    Reply
  60. Hemant Gaba

    Hey Kurt,

    We haven’t tried it yet but we will definitely try this.

    Reply
  61. Hemant Gaba

    Hey William,

    Code for plus: L
    Code for minus: K

    Please use these codes instead of 3 and 2 to achieve the results. 3 and 2 are the number that gets changed to the arrow icons because these numbers are registered in Divi Dynamic icons.

    Reply
  62. Hemant Gaba

    Hey Daniel,

    I have checked the URL and I cannot spot any issue in the toggle. Could you please direct me to the issue so that I can investigate and provide you with an accurate answer?

    Reply
  63. Hemant Gaba

    Hey Ken,

    You can manipulate the max-height property to show or limit the content.

    Reply
  64. Hemant Gaba

    Hey Derfall,

    I have checked the code on my end and I am not able to replicate the issue. Could you please try using incognito mode or a different browser and see if that helps?

    Let me know how it goes.

    Reply
  65. Hemant Gaba

    Hey Kontra,

    I am afraid that I totally understood what the issue is as everything works fine on the URL that you provided. Are you trying to slow down the speed of the toggle?

    Reply
  66. Hemant Gaba

    Hey there,

    Could you please share the code that you are using and also elaborate on where exactly you want to add this class so that I can help you out with this?

    Reply
  67. Hemant Gaba

    Hi Victor,

    I am afraid that I am not able to completely understand the issue here. Could you please elaborate “although it shows the functionality in the post itself” part for me?

    Reply
  68. Hemant Gaba

    Hi Vijay,

    I guess this is what the code does, if you click, it will open and if you click again, it will collapse. Does it behave differently for you?
    If yes then please remove the code you placed and share the URL so that I can check.

    Reply

Leave a Reply to Clinton Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

0

Your Cart