• Here’s what I’m going for:
    screenshot1

    And here’s my most recent screenshot of the page:
    screenshot2
    Now I just need to insert the image of Christi. Unfortunately, I don’t know how to insert an image into php.

    You can see that the image is detected, but I need the image to actually display and to float to the left of the paragraph (like in screenshot 1). Here’s the (relevant) code for front-page.php:

    <article class="front">
      <!--<h2 class="first-title">
      <?php
      if ( get_theme_mod( 'ti_frontpage_article_title','About us' ) ) {
      echo get_theme_mod( 'ti_frontpage_article_title','About us' );
      }
      ?>
      </h2>
      <?php
      if ( get_theme_mod(
      'ti_frontpage_article_image',get_template_directory_uri().'/images/about_us.jpg' ) ) {
      ?>
      <img src="<?php echo get_theme_mod(
       'ti_frontpage_article_image',get_template_directory_uri().'/images/about_us.jpg' ); ?>"
      alt="<?php echo get_theme_mod( 'ti_frontpage_article_title','About us' ); ?>"
      title="<?php echo get_theme_mod( 'ti_frontpage_article_title','About us' ); ?>">
    
      <?php }
      ?>-->
    
      <?php
      if ( get_theme_mod
      ( 'ti_frontpage_article_content','Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est.' ) ) {
    
    echo '<p>' . get_theme_mod
      ( 'ti_frontpage_article_content','<img src="images/Christie_Schmuke.jpg" alt="Christi Schmuke">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est.' ) . '</p>';
      }
      ?>
      </article>

    As you can see, I commented out some of the original code that included the h2 “about us” and an image of a city from the constructzine-lite theme (front-page.php). If you think I can insert the image by just using CSS and you would like to see style.css, please let me know. I have been using a child theme to adjust most of the CSS so far. Please help if you can. Thanks!

  • The topic ‘Constructzine-Lite – Inserting Image Into PHP’ is closed to new replies.