• Can the DIV shortcode have more than one class?

    For example: [div class="testimonial last"]

    I’ve tried a space and comma between classes but no luck. So I have a feeling I know what the answer is, but thought I’d ask.

    This is a great WordPress plug-in that I use all the time. I want the div to appear in the WordPress visual editor so other people working on the site know it’s there. A normal div tag in the text editor doesn’t appear in the visual editor.

Viewing 3 replies - 1 through 3 (of 3 total)
  • For Genesis column classes, you actually have to use two classes for the first in a row:
    [div class="one-half first"]
    Works fine for me, also in other cases.

    Thread Starter Web Studio West

    (@web-studio-west)

    Thanks SiGa. I realize the problem now. I was using my own CSS for the class “last” but there was already a class with the same name in the theme style sheet. Giving my class a unique name solved the problem.

    Yes, one of my first thoughts was that it might be related to the class itself rather than the plugin, as using multiple classes was never a problem for me… Glad to hear you were able to solve it. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can there be multiple classes?’ is closed to new replies.