+8801 977 307 700



Aug, 2011

How to Add an Additional Wrap on Genesis Child Theme

By: | Tags: , , , , , , , , , | Comments: 0

So, since Genesis 1.6, and probably my favorite part of Genesis 1.6 is the theme support of genesis-structural-wraps. So now you can easily add wraps to the header, nav, subnav, inner, footer-widgets, and footer. If you’ve ever looked at the Visual Markup Guide for the Genesis Framework, you may have noticed that all of the main sections contain a div that wraps around the inner markup except the the ‘inner’ section. Have a look at this: #header > .wrap #nav > .wrap #subnav > .wrap #inner > .wrap, this is what we will be adding […]



Jul, 2011

Genesis Framework – Footer

By: | Tags: , , , , | Comments: 0

Sometimes I need to get footer outside of wrap. I tried to find out how can i do that in genesis child theme. This code I got first from Marco who got it from Daisy Olsen. // Reposition the footer remove_action(‘genesis_footer’, ‘genesis_footer_markup_open’, 5); remove_action(‘genesis_footer’, ‘genesis_do_footer’); remove_action(‘genesis_footer’, ‘genesis_footer_markup_close’, 15); add_action(‘genesis_after’, ‘genesis_footer_markup_open’, 5); add_action(‘genesis_after’, ‘genesis_do_footer’); add_action(‘genesis_after’, ‘genesis_footer_markup_close’, 15);



Jun, 2011

Display Google Adsense after first post

By: | Tags: , , , | Comments: 0

If you are using Genesis Theme Framework and would like to display Google Adsense or any advertisement code after the first post on the homepage, archives, and search results page, add the code below to the child theme’s functions.php file. add_action(‘genesis_after_post’, ‘aycchildthemes_ad_after_first_post’); function aycchildthemes_ad_after_first_post() { global $loop_counter; if (!is_singular() && $loop_counter == 0) { ?> ADD YOUR GOOGLE ADSENSE CODE HERE <?php } } The code above which you add should be placed anywhere after this: require_once(TEMPLATEPATH.’/lib/init.php’); And before the following closing code (if it exists): ?> That’s it. Let […]