Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor richardgabriel

    (@richardgabriel)

    Hey Jeff!

    Can you send a copy of the shortcode that you are using, and then a link to where it is being rendered on the page?

    Best,
    Richard

    Thread Starter Jeff Cohan

    (@jdcohan)

    The site in question (Site 1) is private, so I tried to replicate the problem on another testing site (Site 2). However, even though the versions of WP and ET are the same on both sites, the CSS ID and CSS Classes boxes aren’t available from the shortcode generator on Site 2. That has me puzzled…

    a) I suppose there’s a plugin conflict on Site 2. (Have you encountered this – no CSS ID or CSS Classes boxes – before?)

    b) I’ll try to replicate on some new Site 3 and get back to you.

    Thread Starter Jeff Cohan

    (@jdcohan)

    I may have found the problem for Site 1.

    The shortcode generator generates attributes for ids and classes

    However, the functions for outputting the results of the shortcode has nothing for ids and uses body_class instead of classes.

    When I manually add body_class="something" to the shortcode (instead of classes="something", the div that is just inside the blockquote DOES add class="something".

    PS: If you’re going to fix this, what would make the additional body_class function much more useful (IMHO) is if the output builder would add the additional CSS body_class(es) to the OUTER div rather than to the inner div. This would give us much more power to control the display of the testimonials. My $.02.

    Plugin Contributor richardgabriel

    (@richardgabriel)

    Hey Jeff!

    Can you let me know what fields in the Shortcode Generator say CSS ID and CSS Class? We don’t have any such boxes in our shortcode generators.

    Our shortcode generators are powered by our widgets. If you have another plugin or code on your site that is adding these boxes, that would explain why you see them yet they don’t do anything.

    The body_class attributes are undocumented attributes that are not exposed through our generators, but can be discovered via looking into the code.

    I think it likely these fields are being adding by another plugin or the theme – that would also explain why they weren’t present on Site 2.

    Let me know if that seems possible to you.

    All the best,
    Richard

    Plugin Contributor richardgabriel

    (@richardgabriel)

    The default generator should look as follows:

    View post on imgur.com

    Thread Starter Jeff Cohan

    (@jdcohan)

    Heh heh! You are right, Richard!

    It’s the Widget CSS Classes plugin (installed on Site 1 but not on Site 2) that’s adding those boxes. Both puzzles are now solved. Thank you, and sorry for sending you through paces.

    https://wordpress.org/plugins/widget-css-classes/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘CSS IDs and Classes not honored from shortcode’ is closed to new replies.