I am experiencing some trouble with spacing on my Blog page. The title of the post is overlapping with the content section and I need there to be even space for all of the posts on the listing page. Here is a screenshot of what it looks like below:
If anyone knows what I need to edit in the coding of this blog page to allow the title and content to be spaced appropriately, I would greatly appreciate it. Hopefully this is a simple fix. Also please let me know if you want to look at any of the modules for this page. I can attach them in a responce.
with the blog content hightlighted, you should see on the right sidebar an option to edit the listing layout .
within that you should look for
something like this
{% for content in content %}
directly under that, you will see the post container. yours will look like
<div class="post-item">
<div class="post-header">
<!-- this contains your share button -->
</div>
<div class="entry-title-wrapper">
<!-- this contains your title and date -->
</div>
<div class="post-body clearfix">
<!-- this contains your summary -->
</div>
</div>
what you need to do is take the second and third divs inside the post-item container and put them inside a parent div so it would look like this:
<div class="post-item">
<div class="post-header">
<!-- this contains your share button -->
</div>
<div class="listing-inner-wrapper">
<div class="entry-title-wrapper">
<!-- this contains your title and date -->
</div>
<div class="post-body clearfix">
<!-- this contains your summary -->
</div>
</div>
</div>
Now, in your stylesheet, search for .entry-title-wrapper.
remove the float: left
change the width to 33%
then, search for .post-body.clearfix.
remove the float: right
remove the width
(i saw both of .entry-title-wrapper and .pos-body-clearfix twice in the css so make sure to change both
the floats are causing the issue. you can remove those and add display: inline-block to .entry-title-wrapper and .post-body and fiddle wih the widths, but I would still recommend the flex method.
in your template, put those two divs inside a container div and apply flex to the container
@dennisedson I haven't been able to get it to work yet. I am not very versed in coding, especially for hubspot, but I'm trying to get the hang of it. Where would it be best to insert those div segments into the blog page? Should I make another module to add to the page template, or should I insert this into one of the existing modules? Here is the main section of the blog page template that I am working with for reference. Please let me know if there is anything else that would help.
with the blog content hightlighted, you should see on the right sidebar an option to edit the listing layout .
within that you should look for
something like this
{% for content in content %}
directly under that, you will see the post container. yours will look like
<div class="post-item">
<div class="post-header">
<!-- this contains your share button -->
</div>
<div class="entry-title-wrapper">
<!-- this contains your title and date -->
</div>
<div class="post-body clearfix">
<!-- this contains your summary -->
</div>
</div>
what you need to do is take the second and third divs inside the post-item container and put them inside a parent div so it would look like this:
<div class="post-item">
<div class="post-header">
<!-- this contains your share button -->
</div>
<div class="listing-inner-wrapper">
<div class="entry-title-wrapper">
<!-- this contains your title and date -->
</div>
<div class="post-body clearfix">
<!-- this contains your summary -->
</div>
</div>
</div>
Now, in your stylesheet, search for .entry-title-wrapper.
remove the float: left
change the width to 33%
then, search for .post-body.clearfix.
remove the float: right
remove the width
(i saw both of .entry-title-wrapper and .pos-body-clearfix twice in the css so make sure to change both