Title: Adding sections to front page.
Last modified: August 21, 2016

---

# Adding sections to front page.

 *  [oerdem19](https://wordpress.org/support/users/oerdem19/)
 * (@oerdem19)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-sections-to-front-page/)
 * Hi,
 * I would like to add 3 more sections below features pages on the front page. Something
   similar to what pro.com.
 * Is there a way to customize front page in this way?
 * Thank you.

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/adding-sections-to-front-page/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/adding-sections-to-front-page/page/2/?output_format=md)

 *  [ElectricFeet](https://wordpress.org/support/users/electricfeet/)
 * (@electricfeet)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-sections-to-front-page/#post-5147013)
 * Similar to which site? The link to the example that you give above doesn’t work.
 *  Thread Starter [oerdem19](https://wordpress.org/support/users/oerdem19/)
 * (@oerdem19)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-sections-to-front-page/#post-5147118)
 * Similar to [http://pro.com](http://pro.com)
 * Thank you.
 *  [ElectricFeet](https://wordpress.org/support/users/electricfeet/)
 * (@electricfeet)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-sections-to-front-page/#post-5147162)
 * You can add anything you like if you create a page (called “home”) for example
   and set your home page to be a static page pointing to that page in Appearance
   > Customize.
 *  Theme Author [presscustomizr](https://wordpress.org/support/users/nikeo/)
 * (@nikeo)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-sections-to-front-page/#post-5147166)
 * Hi [@oerdem19](https://wordpress.org/support/users/oerdem19/), I found your request
   interesting and decided to make a snippet for this.
    [http://www.themesandco.com/snippet/adding-sections-to-any-page-or-posts-in-customizr/](http://www.themesandco.com/snippet/adding-sections-to-any-page-or-posts-in-customizr/)
 * Hope this will be what you needed!
 *  [stellamaris5](https://wordpress.org/support/users/stellamaris5/)
 * (@stellamaris5)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-sections-to-front-page/#post-5147168)
 * wow , thank you so much nikeo…
 * I can’t get it to work 🙁 (i’ve pasted the PHP code and added 1 page id to the
   array) but I am sure I will figure it out
 * thank you so much
 *  [ElectricFeet](https://wordpress.org/support/users/electricfeet/)
 * (@electricfeet)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-sections-to-front-page/#post-5147174)
 * Well that’s tomorrow’s play session organized 🙂 Thanks nikeo!
 *  Thread Starter [oerdem19](https://wordpress.org/support/users/oerdem19/)
 * (@oerdem19)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-sections-to-front-page/#post-5147207)
 * Thanks a lot Nikeo, Great support I must say.
 * I will give it a try and let you know about results.
 *  Thread Starter [oerdem19](https://wordpress.org/support/users/oerdem19/)
 * (@oerdem19)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-sections-to-front-page/#post-5147218)
 * Hi Nikeo,
 * I have pasted code to childs functions.php file.
 * It looked like this. Just added a single id to array.
 * But it didnt work. I still get the original page.
 * Thanks.
 * <?php
    function add_custom_sections ( $args ) { //set up global vars with the
   section parameters global $section_params; $defaults = array( ‘ids’ => array(
   21) ,
 *  [ElectricFeet](https://wordpress.org/support/users/electricfeet/)
 * (@electricfeet)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-sections-to-front-page/#post-5147243)
 * oerdem,
 * 1. When you post code, please use backticks, otherwise the forum code will try
   to interpret your code. (Use the code button if your keyboard doesn’t have a 
   backtick.)
 * 2. The `$args` parameter in the add_custom_sections() function needs to be defined.
   See Nicolas’s example, where he defines them as follows:
 *     ```
       $my_sections_args = array(
           'ids'             => array( 1 , 45 , 47 ),
           'blur'             => 0,
           'background'     => array( 1 => "randcolors", 45 => 'thumb' , 47 => 'randimages' ),//'randcolors'
           'context'        => 'home',
           'hook'             => '__before_main_wrapper',
           'apply_shadow'     => false,
           'layout'         => 'boxed',
       );
       add_custom_sections ( $my_sections_args );
       ```
   
 *  [itnweb](https://wordpress.org/support/users/itnweb/)
 * (@itnweb)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-sections-to-front-page/#post-5147325)
 * Hello,
 * This is absolutely awesome!
 *  Theme Author [presscustomizr](https://wordpress.org/support/users/nikeo/)
 * (@nikeo)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-sections-to-front-page/#post-5147326)
 * Well, if you have pasted the whole snippet code into your functions.php and used
   the [@electricfeet](https://wordpress.org/support/users/electricfeet/) example
   of implementation, it should work fine.
 *  [itnweb](https://wordpress.org/support/users/itnweb/)
 * (@itnweb)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-sections-to-front-page/#post-5147327)
 * It works now, thank you! 🙂
 *  Theme Author [presscustomizr](https://wordpress.org/support/users/nikeo/)
 * (@nikeo)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-sections-to-front-page/#post-5147328)
 * Great 🙂 Would you mind sharing an url of the result?
    Thanks
 *  [itnweb](https://wordpress.org/support/users/itnweb/)
 * (@itnweb)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-sections-to-front-page/#post-5147329)
 * That looks very impressing, my only question is, how do you get the “This is 
   a title” and the clickeable button?
 *  [itnweb](https://wordpress.org/support/users/itnweb/)
 * (@itnweb)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-sections-to-front-page/#post-5147330)
 * I’d share it gladly, but I’m building the site locally on my computer and it’s
   not yet ready. But I’ve uploaded a screenshot [here](https://drive.google.com/file/d/0BwmtmpFKDWquQmgzb0MzMG9IYVE/edit?usp=sharing).

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/adding-sections-to-front-page/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/adding-sections-to-front-page/page/2/?output_format=md)

The topic ‘Adding sections to front page.’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/customizr/4.4.24/screenshot.png)
 * Customizr
 * [Support Threads](https://wordpress.org/support/theme/customizr/)
 * [Active Topics](https://wordpress.org/support/theme/customizr/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/customizr/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/customizr/reviews/)

 * 19 replies
 * 6 participants
 * Last reply from: [Barry](https://wordpress.org/support/users/barryv/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/adding-sections-to-front-page/page/2/#post-5147385)
 * Status: not resolved