- This topic has 14 replies, 3 voices, and was last updated 3 years, 7 months ago by Tom.
March 27, 2017 at 12:09 pm #298072Dmitry Bychenko
How to insert “custom area” (to put banner in my case) after every X post in Blog part?
background, width.. could be the same size as Post’s box.
sorry, didnt use the search. not sure how to word it.March 27, 2017 at 2:16 pm #298122LeoStaffCustomer SupportMarch 28, 2017 at 2:06 am #298303Dmitry Bychenko
Hi, Leo, thanks for answer.
I dont think it’s what i want.
if i have understood it correctly, this plugin inserts Ad inside the post (inside the text of the particular post).
Im looking for opportunity to insert ad between the posts themselves (without going inside of the posts).
for example, you installed new WP and in Settings -> Readings you have Front page displays settings:
[tick] Your latest posts, i.e.
Front page: none
Posts blog: none
With this settings on your front page you have list of articles, for example:
Post 1. How to install WP?
Post 2. How to set up WP?
Post 3. How to install plugin on WP?
“Custom area”: Whiskas – cats best friend
Post 4. How to add new user in WP?
Post 5. How to move WPsite to another hosting?
…. and so on.
check the example:
Insert custom area in the list of posts, NOT inside the post itself.
If you take WP+GP site, and go to some Post Category
for example, you have site with categories:
Set up WP
and in the list of categories you click “FAQ”
you move to this address http://mysite.com/category/faq
the very first block, where category title is written is a good example of what i want i get.March 28, 2017 at 10:27 am #298529TomLead DeveloperLead Developer
I’ve looked into this before. It requires you to edit the structure of how WP displays the posts.
There’s not an easy solution I’m afraid. If you do attempt to do it, you’ll want to use a child theme.March 28, 2017 at 1:25 pm #298631Dmitry Bychenko
ok, thanksMarch 28, 2017 at 10:08 pm #298771TomLead DeveloperLead DeveloperMarch 29, 2017 at 5:19 am #298870Dmitry Bychenko
Tom, is there some WP plugin which can do that?March 29, 2017 at 10:18 am #299009TomLead DeveloperLead DeveloperMarch 29, 2017 at 10:30 am #299028Dmitry Bychenko
thanksJune 6, 2017 at 8:23 am #329364Dmitry Bychenko
I have created child theme, syle.css and functions.php are in Child theme folder.
and i contacted ad plugin developer.
they sent me instructions on how to put ad between X amount of posts:
Can you say a bit more how to use their code?June 6, 2017 at 9:04 am #329398TomLead DeveloperLead DeveloperJuly 12, 2017 at 7:26 am #348172Dmitry Bychenko
I contacted plugin developer, he wanted to see single.php
I showed him single.php, thats what he replied:
“Your themes single.php is split up into different functions. You will need to get the page that gets loaded by the following function:
<?php get_template_part( ‘content’, ‘single’ ); ?>”
Can you tell me what he wants?July 12, 2017 at 11:44 am #348312TomLead DeveloperLead Developer
The loop that displays the content of the single posts is inside the content-single.php file.
So that’s the file you would need to overwrite if you need to make changes.July 13, 2017 at 12:42 am #348624Dmitry Bychenko
thanks!July 13, 2017 at 9:28 am #348889
- You must be logged in to reply to this topic.