Switch first and second homepage featured section

Discussion in 'Dzonia WordPress Theme' started by bronco67nl, Nov 5, 2013.

  1. bronco67nl

    bronco67nl New Member

    Joined:
    Jul 24, 2013
    Messages:
    12
    Likes Received:
    1
    Hi guys,

    Client wants to have the first and second homepage featured section to switch places. How do I do that?

    Additionally, could you point out one more time where to change/translate the words 'previous' and 'next'. (On the homepage now in Dutch as 'vorige' and 'volgende'.

    Thanks again!

    Site: www.blosjz.nl
     
  2. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,

    1. Go to the front-page.php file present in your theme directory and cut the code given below from the line number 242 to 324
    and paste it at the line number 168.

    Code:
     <!--Start Column three-->
          <div class="column-three sub">
            <!--Start col3-->
            <div class="col3">
              <div class="inner_area ">
                <?php if ( get_option('inkthemes_featured_1') !='' ) {  ?>
              <?php echo stripslashes(get_option('inkthemes_featured_1')); ?>
                <?php } else { ?>
              <iframe width="100%" height="30%" src="http://www.youtube.com/embed/bdt3Xp6Ma48" frameborder="0" allowfullscreen></iframe>
                <?php } ?>
              </div>
            </div>
            <!--End col3-->
            <!--Start col3-->
            <div class="col31">
              <div class="inner_area">
                <!--Start Left Content-->
                <!--Start Testimonials-->
                <div  class="testimonial_holder"> <a href="#" class="prev2">Previous</a> <a href="#" class="next2">Next</a>
                  <div  class="sliderHolder2">
                    <ul>
                      <!--First Testimonials-->
                      <li class="testimonial-list">
                        <div class="testimonial_jcarousel">
                          <?php if ( get_option('inkthemes_testo_heading1') !='' ) {  ?>
                          <h2><?php echo stripslashes(get_option('inkthemes_testo_heading1')); ?></h2>
                          <?php } else { ?>
                          <h2>Our Services</h2>
                          <?php } ?>
                          <?php if ( get_option('inkthemes_testo_desc1') !='' ) {  ?>
                          <p><?php echo stripslashes(get_option('inkthemes_testo_desc1')); ?></p>
                          <?php } else { ?>
                          <p>I decided to try this out on my Diamondback Bikes Reviews site and even if it ain't pretty (my creations) it's so fricken cool, best thing since sliced bread and instant coffee makers. I love having a site that is so appealing. Well, to me anyway, I happen to like my crazy graphics.This is the easiest, funnest, got to have it theme ever.</p>
                          <?php } ?>
                        </div>
                      </li>
                      <!--Second Testimonials-->
                      <?php if ( get_option('inkthemes_testo_heading2') !='' ) {  ?>
                      <li class="testimonial-list">
                        <div class="testimonial_jcarousel">
                          <?php if ( get_option('inkthemes_testo_heading2') !='' ) {  ?>
                          <h2><?php echo stripslashes(get_option('inkthemes_testo_heading2')); ?></h2>
                          <?php } else {} ?>
                          <?php if ( get_option('inkthemes_testo_desc2') !='' ) {  ?>
                          <p><?php echo stripslashes(get_option('inkthemes_testo_desc2')); ?></p>
                          <?php } else {} ?>
                        </div>
                      </li>
                      <?php } else {} ?>
                      <!--Third Testimonials-->
                      <?php if ( get_option('inkthemes_testo_heading3') !='' ) {  ?>
                      <li class="testimonial-list">
                        <div class="testimonial_jcarousel">
                          <?php if ( get_option('inkthemes_testo_heading3') !='' ) {  ?>
                          <h2><?php echo stripslashes(get_option('inkthemes_testo_heading3')); ?></h2>
                          <?php } else {} ?>
                          <?php if ( get_option('inkthemes_testo_desc3') !='' ) {  ?>
                          <p><?php echo stripslashes(get_option('inkthemes_testo_desc3')); ?></p>
                          <?php } else {} ?>
                        </div>
                      </li>
                      <?php } else {} ?>
                    </ul>
                  </div>
                </div>
                <!--End Testimonials-->
              </div>
            </div>
            <!--End col3-->
            <!--Start col3-->
            <div class="col4 last">
              <div class="inner_area">
                <?php if ( get_option('inkthemes_featured_3') !='' ) {  ?>
                <a href="<?php echo get_option('inkthemes_feautured_link3'); ?>"><img class="last_featureimg" align="alignright" src="<?php echo get_option('inkthemes_featured_3'); ?>" /></a>
                <?php } else { ?>
                <a href="<?php echo get_option('inkthemes_feautured_link3'); ?>"><img class="last_featureimg" align="alignright" src="<?php echo get_template_directory_uri(); ?>/images/box.png" /></a>
                <?php } ?>
              </div>
            </div>
            <!--End Column three-->
          </div>
          <!--End Featured content-->
          <div class="clear"></div>

    2. For your second issue,
    Go to the front-page.php file present in your theme directory and follow the instruction shown in the image given below.

    [​IMG]


    This will solve your issue.
     
  3. bronco67nl

    bronco67nl New Member

    Joined:
    Jul 24, 2013
    Messages:
    12
    Likes Received:
    1
    First issue nearly solved... Would like a dotted line between the two sections... How can I fix that.
    Second issue should have worked in a single language website, but this site is multi lingual. But after some tweaking I solved it myself. Proud of me ;-)
     
  4. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,

    Paste the following code in your Custom CSS
    (Appearance -> Theme Options -> Styling Options -> Custom CSS)

    Code:
    .featured_content .column-three.sub {
    border-bottom: 1px dotted #ccc;
    }
    This will solve your issue.
     

Share This Page