Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Edit existing wordpress theme

My work recently got new website and its wordpress theme. Its done by some other probational builders. Now i try to change one link on homepage. How can i do that? I logged on admin area.

Web site is http://95814digital.com and on home page footer there is a file upload link , which the url needed to be changed.

I dont have original file, but i can access to wordpress admin account.

Thank you

Iban Dominguez
Iban Dominguez
17,973 Points

Hi there,

Hi there!

I am not quite sure where that link is coming from but since it seems to appear in all page templates I guess it might be in the footer

Try searching for footer widgets located at:

  • appearance > widgets

Or

Footer template and change the html directly:

  • appearance > editor > footer.php (search for the files list located on the right of the screen)

Not quite sure this is going to help but good luck!

I did look into footer.php and found only class element but not URL or link. Also I checked out widget plug in edit . No success .

Iban Dominguez
Iban Dominguez
17,973 Points

Copy and paste the code you found

<?php

//footer logo
$footerLogo = get_option(THEME_NAME."_footer_logo");    
$footerText = get_option(THEME_NAME."_footer_text");    

//social icons
$social_footer = get_option(THEME_NAME."_social_footer");
$digg = get_option(THEME_NAME."_digg");
$twitter = get_option(THEME_NAME."_twitter");
$facebook = get_option(THEME_NAME."_facebook");
$flickr = get_option(THEME_NAME."_flickr");
$dribbble = get_option(THEME_NAME."_dribbble");
$googleplus = get_option(THEME_NAME."_googleplus");

///page layout
$layout = get_option(THEME_NAME."_layout");


///contact info
$contacInfo = get_option(THEME_NAME."_contac_info");
$contacTitle = get_option(THEME_NAME."_contac_title");
$contactPhone = get_option(THEME_NAME."_contac_phone");
$contactMail = get_option(THEME_NAME."_contac_mail");
$contactAddress = get_option(THEME_NAME."_contac_address");


// pop up banner
$banner_type = get_option ( THEME_NAME."_banner_type" );

$banner_fly_in = get_option ( THEME_NAME."_banner_fly_in" );
$banner_fly_out = get_option ( THEME_NAME."_banner_fly_out" );
$banner_start = get_option ( THEME_NAME."_banner_start" );
$banner_close = get_option ( THEME_NAME."_banner_close" );
$banner_overlay = get_option ( THEME_NAME."_banner_overlay" );
$banner_views = get_option ( THEME_NAME."_banner_views" );
$banner_timeout = get_option ( THEME_NAME."_banner_timeout" );

$banner_text_image_img = get_option ( THEME_NAME."_banner_text_image_img" ) ;
$banner_image = get_option ( THEME_NAME."_banner_image" );
$banner_text = stripslashes ( get_option ( THEME_NAME."_banner_text" ) );

if ( $banner_type == "image" ) {
//Image Banner
    $cookie_name = substr ( md5 ( $banner_image ), 1,6 );
} else if ( $banner_type == "text" ) { 
//Text Banner
    $cookie_name = substr ( md5 ( $banner_text ), 1,6 );
} else if ( $banner_type == "text_image" ) { 
//Image And Text Banner
    $cookie_name = substr ( md5 ( $banner_text_image_img ), 1,6 );
} else {
    $cookie_name = "popup";
}

if ( !$banner_start) {
    $banner_start = 0;
}

if ( !$banner_close) {
    $banner_close = 0;
}

if ( $banner_overlay == "on") {
    $banner_overlay = "true";
} else {
    $banner_overlay = "false";
}



// latest posts
$args=array(
    'posts_per_page'=> 2
);
$the_query = new WP_Query($args);

?>

<!-- Footer --> <div id="footer"> <div class="container"> <div class="row"> <div class="four columns"> <?php if($footerLogo) { ?> <p><img src="<?php echo $footerLogo;?>" alt="<?php bloginfo('name');?>"></p> <?php } ?> <?php if($footerText) { ?> <p><?php echo $footerText;?></p> <?php } ?> </div> <div class="four columns"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer') ) : ?> <?php endif; ?> </div> <?php
if ( function_exists( 'register_nav_menus' )) { $args = array( 'container' => '', 'theme_location' => 'df-menu-3', 'items_wrap' => '<ul class="tags">%3$s</ul>', 'depth' => 1, "echo" => false );

                if(has_nav_menu('df-menu-3')) {

        ?>
        <!-- Tags -->
        <div class="four columns">
            <h5><?php echo DF_et_theme_menu_name("df-menu-3");?></h5>
                <?php echo add_menu_arrows(wp_nav_menu($args));?>
        </div>
        <?php           
                } 
            }
        ?>
        <?php if($contacInfo=="on") { ?>
            <div class="four columns get-in-touch">
                <?php if($contacTitle) { ?><h5><?php echo $contacTitle ?></h5><?php } ?>
                <ul class="awesome-icons">
                    <?php if($contactPhone) { ?><li><i class="icon-phone"></i><?php echo stripslashes($contactPhone);?></li><?php } ?>
                    <?php if($contactMail) { ?><li><i class="icon-envelope"></i><?php _e("Email:",THEME_NAME);?> <a href="mailto:<?php echo $contactMail;?>"><?php echo $contactMail;?></a></li><?php } ?>
                    <?php if($contactAddress) { ?><li><i class="icon-globe"></i><?php echo stripslashes($contactAddress);?></li><?php } ?>
                </ul>                
            </div>
        <?php } ?>
    </div>
</div>

</div> <!-- End Footer -->

<!-- Copyright --> <div id="copyright"> <div class="container"> <div class="eight columns">95814 Digital Copyright © <?php echo date("Y");?> </div> <?php if($social_footer=="on") { ?> <div class="eight columns"> <ul class="footer-social-icons"> <?php if($digg) { ?><li class="footer-digg"><a href="<?php echo $digg;?>" target="_blank"></a></li><?php } ?> <?php if($dribbble) { ?><li class="footer-linkedin"><a href="<?php echo $dribbble;?>" target="_blank"></a></li><?php } ?> <?php if($facebook) { ?><li class="footer-facebook"><a href="<?php echo $facebook;?>" target="_blank"></a></li><?php } ?> <?php if($flickr) { ?><li class="footer-flickr"><a href="<?php echo $flickr;?>" target="_blank"></a></li><?php } ?> <?php if($twitter) { ?><li class="footer-twitter"><a href="<?php echo $twitter;?>" target="_blank"></a></li><?php } ?> <?php if($googleplus) { ?><li class="footer-googleplus"><a href="<?php echo $googleplus;?>" target="_blank"></a></li><?php } ?> </ul> </div> <?php } ?> </div> </div> <!-- End Copyright -->

<!-- Closed layout --> </div> <?php //pop up banner if ( $banner_type != "off" ) { ?>

    <script type="text/javascript">
    <!--

    jQuery(document).ready(function($){
        $('#popup_content').popup( {
            starttime            : <?php echo $banner_start; ?>,
            selfclose            : <?php echo $banner_close; ?>,
            popup_div            : 'popup',
            overlay_div          : 'overlay',
            close_id             : 'baner_close',
            overlay              : <?php echo $banner_overlay; ?>,
            opacity_level        : 0.7,
            overlay_cc           : false,
            centered             : true,
            top                  : 130,
            left                 : 130,
            setcookie            : true,
            cookie_name          : '<?php echo $cookie_name;?>',
            cookie_timeout       : <?php echo $banner_timeout; ?>,
            cookie_views         : <?php echo $banner_views ; ?>,
            floating             : true,
            floating_reaction    : 700,
            floating_speed       : 12,
            <?php 
                if ( $banner_fly_in != "off") { 
                    echo "fly_in : true,
                    fly_from : '".$banner_fly_in."', "; 
                } else {
                    echo "fly_in : false,";
                }
            ?>
            <?php 
                if ( $banner_fly_out != "off") { 
                    echo "fly_out : true,
                    fly_to : '".$banner_fly_out."', "; 
                } else {
                    echo "fly_out : false,";
                }
            ?>
            popup_appear         : 'show',
            popup_appear_time    : 0,
            confirm_close        : false,
            confirm_close_text   : 'Do you really want to close?'
        } );
    });
    -->
    </script>
    <?php } ?>

<?php wp_footer(); ?> </body> <!-- InstanceEnd --> </html>

1 Answer

Matt Campbell
Matt Campbell
9,767 Points

It's a widget. It's a text widget so they've written the code into the text widget to make that appear. Delete the text widget in the first footer column in widgets.

I dont want delete anything it might give me error

Andrew McCormick
Andrew McCormick
17,730 Points

if you just want to change the link go to your WordPress Admin area, click on Appearance menu -> widgets You will see a widget that is a text widget that Matthew mentioned. Inside that widget you will see the code for both those links (electronic form and file upload) you will need to change the one that says 'https://www.yousendit.com/info/send-large-files?s=1000183&cid=ppc-1000183&opword=yousendit~29951500891&k_clickid=69b8963d-c7d2-3649-f3b2-00002b479414 ' to your new URL

Yeaaa!!! Got it thank you!!!