wordpress tinymce add blocks of html code

I know you can add style formats to wordpress through the functions.php file which is great for buttons e.g:

<button class="button">Click Me!</button>

But does anyone know a solution if you wanted to add entire sections of code from a dropdown or a similar method other than defining it in a template page? So, for example, you could add html code below by selecting from a dropdown or clicking a button from the WYSIWYG TinyMCE editor:

Read More
<div class="col-md-4 text-center logo">
  <a class="navbar-brand" href="google.com">
  <img class="responsive" src="#" />
  </a>
</div>

So there are multiple tags and classes.

Thanks,

Rick

Related posts

Leave a Reply

1 comment