Support ForumGoogle Adsense before the first H3 tag – Support Forum https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/feed/ Sun, 28 Apr 2024 20:31:20 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10642 <![CDATA[Google Adsense before the first H3 tag]]> https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10642 Tue, 24 Nov 2015 04:57:24 +0000 hitechjazz Hi IshYoBoy,

I’d like to insert a google Adsense before the first H3 tag like this on my blog post.

I added the code like below into Boldial Child’s [functions.php] and edited my widgets, but It doesn’t work.
Would you mind to teach me?

Best regards,
H

]]>
https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10650 <![CDATA[Reply To: Google Adsense before the first H3 tag]]> https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10650 Tue, 24 Nov 2015 14:52:30 +0000 IshYoBoy Hey,

Really nice code pal! I really like the idea. The code seems fine.

Maybe try to apply it on the “ish_the_content” filter, not on the “the_content”.

Another thing that comes to my mind could be the priority of the filter. Try to run your code as “last” filter (the standard priority is 10) to make sure all shortcodes have been transformed into HTML. E.g.:

add_filter('the_content','add_widget_before_1st_h3', 50);

If still not working as expected. try debugging and “var_dumping” variables on the go to see what “$the_content” is and what your search returns.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10655 <![CDATA[Reply To: Google Adsense before the first H3 tag]]> https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10655 Wed, 25 Nov 2015 06:52:11 +0000 hitechjazz Hi IshYoBoy,

Thank you for always helping. I’m reassured with you.
I changed “the_content” into “ish_the_content” and Google Adsense was displayed!!

But a Google Adsense overlaps with the first H3 tag like this on my blog post.

Would you mind to teach me again?

Best regards,
H

]]>
https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10660 <![CDATA[Reply To: Google Adsense before the first H3 tag]]> https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10660 Wed, 25 Nov 2015 09:41:30 +0000 IshYoBoy Hi hitechjazz,

this issue is caused by class “ish-grid3” in your widget element.
You need to remove this class or set css for this element e.g.:

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10664 <![CDATA[Reply To: Google Adsense before the first H3 tag]]> https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10664 Wed, 25 Nov 2015 11:53:54 +0000 hitechjazz Hi IshYoBoy,

Your code always solve my problem.
Thank you for your continued help.

Best regards,
H

]]>
https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10665 <![CDATA[Reply To: Google Adsense before the first H3 tag]]> https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10665 Wed, 25 Nov 2015 12:07:33 +0000 IshYoBoy Sure thing. Glad it helped ;)

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10801 <![CDATA[Reply To: Google Adsense before the first H3 tag]]> https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10801 Mon, 07 Dec 2015 09:37:56 +0000 hitechjazz Hi IshYoBoy,

I’d like to have a portfolio page on my blog.
I make a portfolio page and added “the Recent Blog Post Elements” on this portfolio page.

Google Adsense is in article.
I hope no google adsense on the portfolio page, hope only the blog page.

Is this code a cause?

Best regards,
H

]]>
https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10809 <![CDATA[Reply To: Google Adsense before the first H3 tag]]> https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10809 Mon, 07 Dec 2015 13:16:32 +0000 IshYoBoy Hi hitechjazz,

content for element “Recent Blog Posts” is generated from post content, in case you didn’t use excerpt field (default WordPress functionality).

excerpt

The best solution in this case is using “Excerpt” for each post which contain Google Adsense.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10832 <![CDATA[Reply To: Google Adsense before the first H3 tag]]> https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10832 Tue, 08 Dec 2015 02:00:53 +0000 hitechjazz Hi IshYoBoy,

Thank you so much!
But I’m sorry, I couldn’t understand your advice.

So I decided not to use element “Recent Blog Posts” and use element “Post Masonry Grid” on my portfolio page.

As there is no “H3 tag” in my portfolio page, Now Google adsense doesn’t display on my portfolio page.

Best regards,
H

]]>
https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10834 <![CDATA[Reply To: Google Adsense before the first H3 tag]]> https://support.ishyoboy.com/forums/topic/google-adsense-before-the-first-h3-tag/#post-10834 Tue, 08 Dec 2015 08:56:07 +0000 IshYoBoy Hi hitechjazz,

we apologize that our advice wasn’t very clear for you.
You found new solution for now but if you need, we can explain it more clearly.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>