• I want my product short description be display as a toggle.
    Is it possible to do?
    Ia have elementor pro and i’m using hello elementor theme.
    How
    Thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you use a commercial plugin and need support, please go to their official support channel. In order to be good stewards of the WordPress community, and encourage innovation and progress, we feel it’s important to direct people to those official locations.

    https://elementor.com/support/

    Forum volunteers are also not given access to commercial products, so they would not know why your commercial plugin is not working properly. This is one other reason why volunteers forward you to the commercial product’s vendors. The vendors are responsible for supporting their commercial product.

    Moderator bcworkz

    (@bcworkz)

    Toggling display is generally accomplished with JavaScript. You could adapt the generic example here to work with your product description. To get such JS code working on a WP page, the file containing the code should be enqueued with PHP.

    If you find it difficult to add an onclick attribute to your page’s HTML, you could add a JS listener to an element without needing to alter the HTML. Similarly, if there is no handy ID attribute you can use to get the correct element, there are other JS methods available to find the correct element.

    Another option is to use jQuery Accordion to toggle display. Accordion is shipped with WP and is already registered. You just need to enqueue “jquery-ui-accordion” and execute something similar to

    jQuery( function() {
        jQuery( "#accordion" ).accordion({
          collapsible: true
        });
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to turn the product short description into a toggle’ is closed to new replies.