WordPress.org

Ready to get started?Download WordPress

Forums

discover
How to add extra boxxes on homepage? (5 posts)

  1. atent
    Member
    Posted 1 year ago #

    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,

  2. youn
    Member
    Posted 1 year ago #

    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.

  3. youn
    Member
    Posted 1 year ago #

    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 "

  4. youn
    Member
    Posted 1 year ago #

    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");
  5. robertprice
    Member
    Posted 7 months ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.