genesis theme development

how to place adsense ad between post in homepage layout genesis tutorial

genesis theme me homepage layout k bich ad kaise lagaye. How to place ad sense ad between homepage post layouts in genesis theme. As we know genesis theme is most popular theme downloaded by blogger. It is about 6k but has many amazing feature like a genesis framework, customizable child theme and full access. if you see some popular blog like supportmeindia they show ads between archive post. how they do it and which code they use for it ? let’s know some interesting tutorial about genesis theme development. you can also design your custom genesis theme design with the help of beginner guide.

Genesis theme me homepage layout k bich ad kaise lagaye

Many users want to place ad sense ad between excerpts of homepage in word press blog. Genesis has a child theme but if no idea have how to customize child theme of genesis, follow our tutorial based on genesis child theme development. Genesis child theme customization is too easy than any other theme. It’s only some tricks of php, html and css and you can also customize your child theme like shoutmeloud and supportmeindia.

How to customize genesis child theme:

Genesis child theme is a part of genesis theme you have to made change in child theme only. Original theme must be unchanged. Before we start Genesis theme me homepage layout k bich ad kaise lagaye you must know some basic of genesis theme.

  • Genesis theme is so easy to customize if you have a little bit idea about php, html and css.
  • You can make a professional blog with genesis theme without any expert.
  • You can also make any desire theme change.

genesis theme me homepage layout k bich ad kaise lagaye

in genesis child theme we want to place ad sense or other affiliate link because it look like a part of excerpt and you can get easily user click on ads. You may be surprised to know that most blogger search genesis theme me homepage layout k bich me ad kaise lagaye. Other top search query is following.

  • Genesis me homepage me first post k bad adsense ad kaise lagaye / add kare.
  • Genesis theme me without plug-in homepage layout k bich ad kaise add kare.
  • how to place ad sense ad between homepage post layout in genesis theme like supportmeindia.
  • How to add advertisement after first post excerpt in homepage layout.
  • Genesis theme k homepage layout me ads kaise lagaye.
  • Genesis theme me ads kaise lagate h.

Genesis theme me homepage layout k bich ad kaise lagaye – process

To place ad between homepage layouts in genesis theme you must know what we want to actually change. There are two things

  • First thing: place ad sense ad between post in homepage layout
  • Second thing: place ad sense code between post layout when user searches category or tag.

now follow below steps carefully.

Go to word press admin panel area >> appearance >> editor ( last option from this field.)

Now open your genesis child theme function.php for example if you are using parallax pro most using child theme of genesis. Open your child theme and scroll mouse at the end of code. Just place below code.

add_action( ‘genesis_after_entry’, ‘crunchify_ad_on_home’ ); function crunchify_ad_on_home() { global $loop_counter; $loop_counter++; if( (!is_paged() && !is_singular()) && ($loop_counter == 1 || $loop_counter == 4)) { echo ‘<div style=”border:1px solid #ccc;padding:5px;margin-bottom:25px;”><ins class=”adsbygoogle” style=”display:block” data-ad-format=”fluid” data-ad-layout-key=”-ff+54+8u-ea-3q” data-ad-client=”ca-pub-xxxxxxx” data-ad-slot=”xxxxx”></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script></div>’; $loop_counter = $loop_counter + 1; }

Place ad sense ad only in homepage layout.

If you want to place ad sense ad in post layout while reader search post category or tag. Just place this code at the end of code.

global $loop_counter_paged; $loop_counter_paged++; if( (is_paged() ) && ($loop_counter == 2 || $loop_counter == 4) ) { echo ‘<div style=”border:1px solid #ccc;padding:5px;margin-bottom:25px;”><ins class=”adsbygoogle” style=”display:block” data-ad-format=”fluid” data-ad-layout-key=”-ff+54+8u-ea-3q” data-ad-client=”ca-pub-xxxxxxxx” data-ad-slot=”xxxxxx”></ins><script> (adsbygoogle = window.adsbygoogle || []).push({});</script></div>’; $loop_counter_paged = $loop_counter_paged + 1; }}

finaly update your function.php file to make a final change.

Here:

  • Xxxxxx must be replaced with your ad sense code.
  • Loop counter: display of ad sense ad after post like first, second third etc.
  • Border and color: change with your homepage post excerpt border color so it look like a part of post.

Genesis theme me homepage layout k bich ad kaise lagaye – benefit

Placing ad sense ad between homepage layouts in genesis theme has amazing result in user click of ads.

  • You can get more user click.
  • It looks like a part of homepage.
  • Best place to ad sense ads.

Caution:

Before proceeding genesis theme me homepage layout k bich ad kaise lagaye you must know how to correct theme error. Little mistake in code placing may affect your child theme and you may lost your data, so first take a backup of your data, place code carefully. If mistake happen, follow below steps to correct code error.

How to correct code error in genesis theme: While you get an error during genesis theme me homepage layout k bich ad kaise lagaye follow some step to work admin panel area back. We will discuss on this tutorial in future because in this code there is no chance of mistake.

Final word:

Genesis theme me homepage layout k bich ad kaise lagaye may be a cool idea as it has many advantage. If you have any issue regard blog or theme leaves a comment. We will support and help you in genesis theme development. you can ask us about custom genesis theme design and development. we also suport custom css development.

Subscribe to our mailing list

* indicates required

Leave a Reply

Your email address will not be published. Required fields are marked *