1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Wordpress Footer Code

Discussion in 'WordPress' started by jj1, Jul 27, 2010.

  1. #1
    Hi all

    I'm just trying to get to grips with my first design in Wordpress.

    Does anyone have any code that they wouldn't mind sharing (presumably code for the footer.php and the style.css) for adding an additional set of footer navigation?

    It doesn't need to be anything fancy - just page names with a link to those pages.

    Many thanks to anyone who replies - I'm familiar with html and css but the php side of Wordpress is something I'm struggling with.
     
    jj1, Jul 27, 2010 IP
  2. mcfox

    mcfox Wind Maker

    Messages:
    7,526
    Likes Received:
    716
    Best Answers:
    0
    Trophy Points:
    360
    #2
    Just edit the footer.php part of the template as you would an html page.

    For example, here's the footer.php for the default, TwentyTen template.

    If you notice where I have bolded the text - that's normal html so if you want to drop some links into the footer, all you need do is add them after the '?>' (the end of the php) and before the '</body>'

    Like so:
     
    mcfox, Jul 27, 2010 IP
  3. master-mind

    master-mind Well-Known Member

    Messages:
    91
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    111
    #3
    master-mind, Jul 27, 2010 IP
  4. Omar Jutt

    Omar Jutt Guest

    Messages:
    4
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hello jj1, how are you?

    I'll tell you how to add 3 columns in your wordpress theme footer. First you have to register the sidebars in your wordpress theme.

    Open function.php (wordpress admin>appearance>editor>function.php)

    Search for the line:

    below this line you will find another line somewhat like this (depending on the number of sidebars you have):

    or
    If you have one sidebar in your theme and you want 3 more sidebars (which are to be placed in the footer) than you have to replace that line with this one:

    THis will register 4 sidebars.

    Now open footer.php (wordpress admin>appearance>editor>footer.php)

    place this code just above the footer division

    Now open your css file and add this

    customize the css as your theme requirements. Now go to your widgets (appearance>widgets) you will see 3 footer widgtized areas. Now place here what you like. Enjoy :)

    Take a look at my blog's footer. Visit chasingeyes[dot]com
     
    Omar Jutt, Jul 27, 2010 IP
    mcfox likes this.