Site logo

Archived topic

div class for my main content to add to template

1 reply · Started by Matthew on April 8, 2019

Viewing posts 1–2 of 2

hello,

I have copied the single template to make an attachment template for my media library images to add galleries, text info, custom fields and so on.

I'm adding all the content I want to display in the <div class="entry-content"> (which is nested within <div class="inside-article">)

Is this OK? Or would it be better to create a new sort of 'main content' div under this div and if so what class should it have?

Not sure if the 'entry content' div should more or less just contain its sparse default info which is the_content and wp_link_pages( array(

thanks

That's totally fine. You can remove it as well if you like - it shouldn't be a big deal either way.

Let me know if you need more info :)

This archived topic is closed to new replies.