WordPress.org

Support

Support » Themes and Templates » discover » How to add extra boxxes on homepage?

How to add extra boxxes on homepage?

  • Hello, is there any way to add more of those boxxes? I need a lot more then just 4.

    Ive managed to add way more to add this line in the code : <?php get_template_part( ‘element-boxes’, ‘index’ ); ?

    But it seems number 1, and number 5. Are the same. If i edit it. So this isnt really working yet.

    Somebody who can help me?

    Greetings and thanks in advance,

Viewing 4 replies - 1 through 4 (of 4 total)
  • hi,

    I think you should try by editing the “element-boxes.php” file, then change the
    <= 4

    in this line (line 1) :
    <?php for ($i = 1; $i <= 4; $i++) { ?> '`

    for whatever you need.

    Be aware that you’ll need to adapt your style.

    Hope this help.

    me again,

    sorry but maybe i misunderstood your question.
    you write

    But it seems number 1, and number 5. Are the same.

    In the “amdin panel”, you are able to custom each of those box in ‘Appearence / Theme options / Homepage ”

    more detailed info here

    in file “options.php “, don’t forget to change/adpat all “id’s”, ie ex for box n° 5 :

    "id" => "box_head4"

    to

    "id" => "box_head5"

    so you should have something like :

    $options[] = array( "name" => "Homepage Box 5 heading",
    						"desc" => "Heading for homepage box5.",
    						"id" => "box_head5",
    						"std" => "",
    						"type" => "text");
    
    	$options[] = array( "name" => "Homepage Box 5 text",
    						"desc" => "Textarea for homepage box5.",
    						"id" => "box_text5",
    						"std" => "",
    						"type" => "textarea");
    
    	$options[] = array( "name" => "Homepage Box 5 thumbnail image",
    						"desc" => "215px x 130px exact. Upload your image for homepage box 5.",
    						"id" => "box_image5",
    						"type" => "upload");						
    
    	$options[] = array( "name" => "Homepage Box 5 link",
    						"desc" => "Paste here the link of the page or post.",
    						"id" => "box_link5",
    						"std" => "",
    						"type" => "text");
    robertprice

    @robertprice

    I found this thread very helpful for a current project:
    http://strobert.thinkingfoundation.org/
    One question in regards to five columns which I was able to create, but not in one row. How can all five be on one row?

    Thank you in advance.

    robert

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add extra boxxes on homepage?’ is closed to new replies.
Skip to toolbar