Support

Account

Home Forums Front-end Issues How to use Wrapper Classes

Solving

How to use Wrapper Classes

  • I have entered a class in the Wrapper Attributes “class” field. However, I can’t get the class to wrap around the field. I can’t find any documentation about how to use the class fields. Any insight would be appreciated.

  • i am not sure, but i think that this wrapper attributes are for backend only.
    with that you can stile backend.

    because at frontend you can easy wrap your field for example by a class & by blockquote with code like this:

    $my_quotetext = get_field('my_quotetext');
    echo '<div class="my_quote">';
    echo '<blockquote>';
    echo '<p>'.$my_quotetext.'</p>';
    echo '</blockquote>';
    echo '</div>';

    there is no need to add wrapper at backend before

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to use Wrapper Classes’ is closed to new replies.