• Resolved skyn820

    (@skyn820)


    Hi, my company uses WordPress for our website. wwww.getofficeplus.com Today I came into work and realized that an image is now missing from our home page. I have very limited knowledge of coding and the like. To expand on that, I taught myself most of what I know when I had a Myspace page.

    The following is coming from “Office Plus: Home Page Template (frontpage.php)” from the Editor area under the Appearance section. In bold italics is what the original creators of our page had in regards to the image itself.

    <!-- THEATER ZONE-->
    			<div id="theater_zone">
    			<div id="theater_slider">
    			<?php if(get_field('theater', 118) ): ?>
    				<?php while(has_sub_field('theater', 118) ): ?>
    					<div><a href="<?php the_sub_field('image_link'); ?>" target="_self">
    						<strong><em><img src="<?php the_sub_field('theater_image'); ?>" / ></em></strong>
    
    					</div>
    				<?php endwhile; ?>
    				<?php endif; ?>
    			</div>
    		</div>

    At some point, I was tinkering around and lost the image. I then changed the coding to the following to retrieve the image and it had been working just fine, until now. I have no idea how to fix this and would greatly appreciate any help.

    <!-- THEATER ZONE-->
    			<div id="theater_zone">
    			<div id="theater_slider">
    			<?php if(get_field('theater', 118) ): ?>
    				<?php while(has_sub_field('theater', 118) ): ?>
    					<div><a href="<?php the_sub_field('image_link'); ?>" target="_self">
    						<strong><em><img src=" http://www.getofficeplus.com/wp-content/uploads/2013/04/THEATER.jpg" width="697" height="298" /></a></em></strong>
    
    					</div>
    				<?php endwhile; ?>
    				<?php endif; ?>
    			</div>
    		</div>
Viewing 1 replies (of 1 total)
  • Thread Starter skyn820

    (@skyn820)

    I resolved the issue. I use Google Chrome as my browser. I went to our website and right clicked to “view page info”. There I saw that all that was showing was the following where the image coding should be
    `<!– THEATER ZONE–>
    <div id=”theater_zone”>
    <div id=”theater_slider”>`

    Removing the “if” “while” field parameters and simply inserting the img source coding brought back the image. Being that we’ve never have scrolling images across the page, leaving the coding like this shouldn’t be an issue for future use.

    Yay me! I can keep my job for another day.

Viewing 1 replies (of 1 total)

The topic ‘Home Page Template Image Gone’ is closed to new replies.