Aesop Story Engine looks best on the themes with full width component supports. Most themes however restrict the width of the post contents. Modifying your theme to support full width contents requires some changes to the CSS codes. Let’s take the generic Twenty Seventeen theme for example. Obviously the content area is not full width. The first step is to find the class of your content area. To follow this tutorial, you need the knowledge covered in this link: How To Find The ID Or Class Name For An Element To Use In Custom CSS

Usually the class is .entry-content, but you can find it using the inspector in your browser. In the following example with Twenty Seventeen, the content area is highlighted and its class is .entry-content.

2017

So let’s add some Custom CSS

  1. .entry-content {
  2.    width:100%;
  3.    max-width: 100%;
  4. }
.entry-content {
   width:100%;
   max-width: 100%;
}


Actually, if you add this Custom CSS code, you will find that it didn’t change anything. It’s because .entry-content is stuck in another container with a limited width. Using the inspector, you can find that the limiting parent containers are .wrap and .content-area. So let’s change the code:

  1. .wrap,
  2. .content-area,
  3. .entry-content,
  4. {
  5.     width:100% !important;
  6.     max-width: 100% !important;
  7. }
.wrap,
.content-area,
.entry-content,
{
    width:100% !important;
    max-width: 100% !important;
}

Now this is what it looks like:

2017-2

Great! Now one thing you may want to do is to limit the widths of the text paragraphs for better readability. So here is an example code to center the text and limit its width to 700px.

  1. .wrap .content-area .post p,
  2. .wrap .content-area .post h1{
  3.     max-width:700px;
  4.     margin-left: auto;
  5.     margin-right: auto;
  6. }
.wrap .content-area .post p,
.wrap .content-area .post h1{
    max-width:700px;
    margin-left: auto;
    margin-right: auto;
}

2017-3

Now the Twenty Seventeen theme is compatible with full width components. Granted, things are not quite perfect. You may notice things like the widget area being a little confused and not knowing where to go. But this should give you a good idea on how the full-width components work. If you want to look into the themes built with Aesop in mind from the ground up, check out our themes sections.

  Comments

Leave a Reply

Your email address will not be published. Required fields are marked *