Archived topic
inserting a block of text after 2 posts while using 2 column format of blog
11 replies · Started by Anil on June 13, 2019
Hi
Please tell correct way of inserting a block of text after 2 posts while using 2 column format of blog on homepage.
I used a div with paging-navigation class and it is working on the said site....
Do you think it is correct or we have some better way to do it....
Hi there,
Wow I've actually never seen this done before.
Where are you adding this?
Thanks Leo
I just want to check whether class paging-navigation is correct ....
Did you like the total appearance of home page?
How are you actually adding that in? I'm very curious haha
I would say using paging-navigation is not very conventional but as long as it works for you it should be ok.
I would say using paging-navigation is not very conventional
I feel Tom can guide about it...............
Can you first let me know how you are adding the <div> between the posts blocks?
Plugin
I see. Why did you have to add paging-navigation?
Tom/David
Can you please guide which css class to use for a div that is to be placed after 2 posts and that to span full width of content-bar... I used paging-navigation class that worked on my example site, but I want that to be correct....
Hi Anil,
There isn't exactly a correct answer to this question as that <div> doesn't actually exist between the posts in the theme.
Using paging-navigation just means all the style associated with that class will load for that <div>, and if that works for you then it is correct and feel free to use it.
You can also give that <div> a class anil and add this CSS to create the same thing:
.anil {
flex: 1 1 100%;
padding: 20px;
background-color: #fff;
margin-left: 10px;
}
Let me know if this makes sense :)
Thanks Leo, this resolved. Bye.
No problem :)