Can I add new boxes to main page?

Discussion in 'Themia WordPress Theme' started by jignaciodue, Jun 5, 2013.

  1. jignaciodue

    jignaciodue New Member

    Joined:
    Feb 10, 2013
    Messages:
    5
    Likes Received:
    0
    Location:
    Madrid
    On the main page there are 3 photos with text and "Read More...". But I need to add another 3 below.

    Can it be done?

    Thank you!
     
  2. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,
    Go to the front-page.php file present in your Theme Directory and paste the code given below
    Code:
    <!--Start Feature content-->
    <div class="feature_content">
        <div class="one_third">
            <div class="wrap">
                <h2>
                    Enter your First Feature Heading here
                </h2>
                <a href="Enter your First Feature area link here"><img src="Enter your First Feature area image URL address here"/></a>
                <p>
                    Enter your First Feature Content here
                </p>
                <a href="Enter your First Feature area link here" class="read_more">read more.....</a>
            </div>
        </div>
        <div class="one_third">
            <div class="wrap">
                <h2>
                    Enter your Second Feature Heading here
                </h2>
                <a href="Enter your Second Feature area link here"><img src="Enter your Second Feature area image URL address here"/></a>
                <p>
                    Enter your Second Feature Content here
                </p>
                <a href="Enter your Second Feature area link here" class="read_more">read more.....</a>
            </div>
        </div>
        <div class="one_third last">
            <div class="wrap">
                <h2>
                    Enter your Third Feature Heading here
                </h2>
                <a href="Enter your Third Feature area link here"><img src="Enter your Third Feature area image URL address here"/></a>
                <p>
                    Enter your Third Feature Content here
                </p>
                <a href="Enter your Third Feature area link here" class="read_more">read more.....</a>
            </div>
        </div>
    </div>
    <div class="clear"></div>
    <!--End Feature content-->
    <!--Start Feature content-->
    <div class="feature_content">
        <div class="one_third">
            <div class="wrap">
                <h2>
                    Enter your Fourth Feature Heading here
                </h2>
                <a href="Enter your Fourth Feature area link here"><img src="Enter your Fourth Feature area image URL address here"/></a>
                <p>
                    Enter your Fourth Feature Content here
                </p>
                <a href="Enter your Fourth Feature area link here" class="read_more">read more.....</a>
            </div>
        </div>
        <div class="one_third">
            <div class="wrap">
                <h2>
                    Enter your Fifth Feature Heading here
                </h2>
                <a href="Enter your Fifth Feature area link here"><img src="Enter your Fifth Feature area image URL address here"/></a>
                <p>
                    Enter your Fifth Feature Content here
                </p>
                <a href="Enter your Fifth Feature area link here" class="read_more">read more.....</a>
            </div>
        </div>
        <div class="one_third last">
            <div class="wrap">
                <h2>
                    Enter your Sixth Feature Heading here
                </h2>
                <a href="Enter your Sixth Feature area link here"><img src="Enter your Sixth Feature area image URL address here"/></a>
                <p>
                    Enter your Sixth Feature Content here
                </p>
                <a href="Enter your Sixth Feature area link here" class="read_more">read more.....</a>
            </div>
        </div>
    </div>
    <div class="clear"></div>
    <!--End Feature content-->
    
    Inplace of

    Code:
    <!--Start Feature content-->
            <div class="feature_content">
                <div class="one_third">
                    <div class="wrap">
                        <h2>
                            <?php if (get_option('inkthemes_headline1') != '') { ?>
                                <?php echo stripslashes(get_option('inkthemes_headline1')); ?>
                            <?php } else { ?>
                                Four Different Skins
                            <?php } ?>
                        </h2>
                        <?php if (get_option('inkthemes_img1') != '') { ?>
                          <a href="<?php echo get_option('inkthemes_link1'); ?>"> <img src="<?php echo get_option('inkthemes_img1'); ?>" alt="feature image"/></a>
                        <?php } else { ?>
                            <a href=""><img src="<?php bloginfo('template_url'); ?>/images/featureimg-1.png"/></a>
                        <?php } ?>
                        <p>
                            <?php if (get_option('inkthemes_feature1') != '') { ?>
                                <?php echo stripslashes(get_option('inkthemes_feature1')); ?>
                            <?php } else { ?>
                                Our affiliate program pays out some of the biggest commissions available in the  mium WordPress
                            <?php } ?>
                        </p>
                        <a href="<?php echo get_option('inkthemes_link1'); ?>" class="read_more">read more.....</a> </div>
                </div>
                <div class="one_third">
                    <div class="wrap">
                        <h2>
                            <?php if (get_option('inkthemes_headline2') != '') { ?>
                                <?php echo stripslashes(get_option('inkthemes_headline2')); ?>
                            <?php } else { ?>
                                Amazing Shortcodes
                            <?php } ?>
                        </h2>
                        <?php if (get_option('inkthemes_img2') != '') { ?>
                          <a href="<?php echo get_option('inkthemes_link2'); ?>"><img src="<?php echo get_option('inkthemes_img2'); ?>" alt="feature image"/></a>
                        <?php } else { ?>
                            <a href=""><img src="<?php bloginfo('template_url'); ?>/images/featureimg-2.png"/></a>
                        <?php } ?>
                        <p>
                            <?php if (get_option('inkthemes_feature2') != '') { ?>
                                <?php echo stripslashes(get_option('inkthemes_feature2')); ?>
                            <?php } else { ?>
                                Our affiliate program pays out some of the biggest commissions available in the  mium WordPress.
                            <?php } ?>
                        </p>
                        <a href="<?php echo get_option('inkthemes_link2'); ?>" class="read_more">read more.....</a> </div>
                </div>
                <div class="one_third last">
                    <div class="wrap">
                        <h2>
                            <?php if (get_option('inkthemes_headline3') != '') { ?>
                                <?php echo stripslashes(get_option('inkthemes_headline3')); ?>
                            <?php } else { ?>
                                Full Localisation Support
                            <?php } ?>
                        </h2>
                        <?php if (get_option('inkthemes_img3') != '') { ?>
                          <a href="<?php echo get_option('inkthemes_link3'); ?>"> <img src="<?php echo get_option('inkthemes_img3'); ?>" alt="feature image"/></a>
                        <?php } else { ?>
                            <a href=""><img src="<?php bloginfo('template_url'); ?>/images/featureimg-3.png"/></a>
                        <?php } ?>
                        <p>
                            <?php if (get_option('inkthemes_feature3') != '') { ?>
                                <?php echo stripslashes(get_option('inkthemes_feature3')); ?>
                            <?php } else { ?>
                                Our affiliate program pays out some of the biggest commissions available in the  mium WordPress.
                            <?php } ?>
                        </p>
                        <a href="<?php echo get_option('inkthemes_link3'); ?>" class="read_more">read more.....</a> </div>
                </div>
            </div>
            <div class="clear"></div>
            <!--End Feature content-->
    Remove the code from line number 124 to 197 and paste the given code from there.
     
  3. lecochonnet20

    lecochonnet20 New Member

    Joined:
    Jul 9, 2012
    Messages:
    3
    Likes Received:
    0
    Hello Piyush,

    I have now the 6 boxes in the main page. But i still have only 3 boxes to fill in the "home Page setting".
    Cold you please help ?
    Philippe
     
  4. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    It required lots of customization to add an extra boxes option in homepage settings, You need to enter your content manually in the code provided above.
     

Share This Page