Adding div tags to blog posts

Hello!

I’m trying to add < div > tags in some of my blog posts. Could you help me figure out how to do it?

I would like to put a < div > tag before the header and end it after the image. This is what I mean:

My site is crisisequipped.com . Thanks for your help! :slight_smile:
Nadia

Hello Nadia,

It looks like you are using Cornerstone so your post so if you want to add some spacing, why not use the Line or Gap element?

Hope this helps.

Yes, I am using cornerstone. The problem is that I have Mediavine Ads installed and Google is picking up some of their ‘report this ad’ text on my snippets and meta descriptions. I’m afraid that it’s making my site look spammy. (See photos below)

Screen Shot 2020-05-14 at 3.19.22 PM

Mediavine was unable to diagnose the issue because they haven’t seen it occur before. So they suggested that I add a < div > tag before my H2 tags and </ div > after the image to see if Google will stop picking up the “Report this ad” text.

How would I be able to do that? Or do you have any other suggestions?

I appreciate your help! :slight_smile:
Nadia

Hi Nadia,

You can add a Raw Content Element then place the html div tag in there: https://www.w3schools.com/tags/tag_div.ASP

But you will add some CSS codes to add some height to that div like:

div {
    height: 40px;
}

If you want it specific to the some divs, you can add a class to the custom div you’re adding.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.