NooTheme Premium WordPress Theme › Forums › JobMonster › Adsense inside listing jobs content
- This topic has 4 replies, 3 voices, and was last updated 5 years, 2 months ago by Jackie.
-
AuthorPosts
-
5 years, 2 months ago #1068961
Hi;
I want to add adsense inside the jobs listing, so i edited the file layouts/job/loop/loop.php and i successfully edited the file and displayed the ads screen(jobs.jpg)
I'm displaying the ads after each 4 jobs
The problm is when i change the option "Job List Pagination Style" screen (loadmore.jpg) from pages numbers to loadmore button , the content i displayed with ajax without problem but the ads does'nt appear in the middle of the content anymore.
Ps : in the file loop.php , when i put any code between the tags <article></article> the content is displayed in the both pagination style (numbers and ajax), but when i put the content outside <article></article> the content isn't displayed
( this content is inside)
the loop while ($wp_query->have_posts()) : $wp_query->the_post();
endwhile;
thanks very much
Attachments:
You must be logged in to view attached files.5 years, 2 months ago #1068964This reply has been marked as private.5 years, 2 months ago #1069036
AnonymousInactiveTopics: 0
Posts: 3295Hi,
Thanks for contacting us.
Currently, Jobmonster theme doesn't support to add Adsense as your desired and this is a customization question. It is out of our support service.
However, you can give us your website's URL & admin account and FTP account privately via checking Set as private reply checkbox. We will try to check your issue, then feedback you soon.
Thank you.
NooTheme
5 years, 2 months ago #1069105This reply has been marked as private.5 years, 2 months ago #1069181Hi again.
We found some article can help you make the adsense load on the ajax load.
https://weblog.west-wind.com/posts/2016/apr/09/google-adsense-for-ajax-content
and here https://stackoverflow.com/questions/10834751/adsense-with-ajax
Put the script <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> to the head or another position.
Please check it again.
Thanks.
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.