Questions involving the footer

Support Area Forums Bottega Questions involving the footer

This topic contains 1 reply, has 2 voices, and was last updated by  Bill Robbins 1 year, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question: http://dynamicwebforms.net/
  • Author
    Posts
  • #37095

    milbra schweikert
    Participant

    I have 3 “how to” questions about Footers.

    1. How do I add the year to the copyright statement so it updates automatically?
    2. How do I make an email address a link?
    3. How do I make the Twitter and Facebook icons open in a new tab when clicked?

    Thanks you for your help.

    #37100

    Bill Robbins
    Keymaster

    Good Morning Milbra,

    We should be able to take care of those things for you.

    1. The default copyright statement will update the year automatically. If you want to have a custom one do that, you’ll need to edit the footer file directly. Go to the Appearance section in your WordPress dashboard and click on Edit. From the list of files on your right, choose (Footer – footer.php). Look for this section:

    
    <?php if(of_get_option('footer_text', $single = true) != ""){ ?>
    
    	<p><?php echo of_get_option('footer_text'); ?></p>
    	
    <?php } else { ?>
    
    	<p><a href="<?php echo home_url(); ?>/">&copy; <?php echo date('Y'); ?> <?php bloginfo('name'); ?></a><br /><a rel="nofollow" href="http://www.organizedthemes.com" title="Another great theme from Organized Themes">Organized Themes</a></p> 
    
    <?php } ?>
    

    and change it to be like this:

    
    <p>&copy; <?php echo date('Y'); ?> <?php echo of_get_option('footer_text'); ?></p>
    

    Save your changes. That would have the copyright symbol, the current year followed by what’s currently in the footer text in the theme options.

    2. I don’t believe you can insert a link into the footer contact area. I think the theme options will strip it out for security reasons. So let’s edit the footer again. The line you’ll want to change is this:

    
    <p><?php echo of_get_option('footer_contact'); ?></p>
    

    Make it be like this:

    
    <p><a href="mailto:TheSource@SherwoodBaptist.net">Email: TheSource@SherwoodBaptist.net</a></p>
    

    and save your changes. That should make the text a link to the email address.

    3. Last up is making your social links open in a new tab. You can do that. In the footer.php file you’ll see a block that looks like this:

    
    <?php if(of_get_option('flickr', $single = true) != ""){ ?>
    <a href="<?php echo of_get_option('flickr',''); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/flickr.png" alt="" /></a>	
    <?php } ?>
    

    Each one of those is for one of the social icons/links. You can change each of these:

    
    <a
    

    to this:

    
    <a target="_blank" 
    

    and they will open in new tabs. Do be careful doing that as users often get cranky when new tabs open without them choosing to do that.

    Let me know if you have any questions,
    Bill

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Questions involving the footer’ is closed to new replies.