Jump to content

Show only if index


emediastudios

Recommended Posts

Hi everyone, I would like to edit a file so that it only shows a image iif it is the home page on wordpress.

<?php
/*
WARNING: This file is part of the core Genesis framework. DO NOT edit
this file under any circumstances. Please do all modifications
in the form of a child theme.
*/
/**
* Handles the footer structure.
*
* This file is a core Genesis file and should not be edited.
*
* @category Genesis
* @package  Templates
* @author   StudioPress
* @license  http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
* @link	 http://www.studiopress.com/themes/genesis
*/
genesis_structural_wrap( 'inner', '</div><!-- end .wrap -->' );
echo '</div><div class="quote-table"><img src="http://clients2.weblink.com.au/clients/oceaniacapital/quotes_img.asp" alt="Quote Table" style="border: solid 1px #ddd;" /></div>';
do_action( 'genesis_before_footer' );
do_action( 'genesis_footer' );
do_action( 'genesis_after_footer' );
?>
</div><!-- end #wrap -->
<?php
wp_footer(); // we need this for plugins
do_action( 'genesis_after' );
?>

 

This is what I only want to show on the home page.

echo '</div><div class="quote-table"><img src="http://clients2.weblink.com.au/clients/oceaniacapital/quotes_img.asp" alt="Quote Table" style="border: solid 1px #ddd;" /></div>';

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.