• I am using underscores to create a theme and I want to use the bootstrap grid to make a layout for the page content. right now the content shows like.

    
    <div class="entry-content">
    <h1>
    <img />
    <p>
    
    <h2>
    <img />
    <p>
    </div>
    

    But what I want is:

    
    <div class="entry-content">
    <div class="col">
    <h1>
    <img />
    <p>
    <div>
    
    <div class="col">
    <h2>
    <img />
    <p>
    <div>
    </div>
    
    • This topic was modified 3 years, 11 months ago by Yui. Reason: please use CODE button for code formatting
Viewing 1 replies (of 1 total)
  • You need to open up the template file and insert those additional div’s into the markup. I would recommend installing a plugin that will show you what page template is loading so you can identify them, it’s called “What template am I using” by Eric King. Once you know what template file to edit, open it in a text editor and simply enter whatever bootstrap grid code you want.

    Also, I would greatly advise you to use the “code” key when entering code so that it is formatted properly in your post. You click “code” and enter your HTML/PHP/JS/Etc inside the ticks and then click it again when you want to close that code snippet.

Viewing 1 replies (of 1 total)
  • The topic ‘add div between underscores content in content-page.php’ is closed to new replies.