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 theme help

Discussion in 'Content Management' started by Audiomad, Mar 2, 2012.

  1. #1
    I'm new to creating wordpress themes I'm using the latest version.

    I've created the following so far :

    header.php top part of the site
    main.php the homepage content area / widget area's
    footer.php footer content
    css/style.css

    I want to have a static homepage with the latest content and have a main2.php for the article / pages them selves.

    I'm not to sure about the index.php and getting them to work along side main.php and main2.php.

    can anyone help?
     
    Audiomad, Mar 2, 2012 IP
  2. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #2
    hmansfield, Mar 3, 2012 IP
  3. furqanartists

    furqanartists Well-Known Member

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    101
    #3
    Use home.php for your custom home page content in WordPress.
     
    furqanartists, Mar 3, 2012 IP
  4. Audiomad

    Audiomad Peon

    Messages:
    1,028
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I actually got it working by using this in the index file

    It actually worked out better for what I was trying to do.
     
    Audiomad, Mar 3, 2012 IP
  5. PullMyFinger

    PullMyFinger Active Member

    Messages:
    88
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    93
    #5
    Glad you got it working. :)
     
    PullMyFinger, Mar 5, 2012 IP
  6. leo29

    leo29 Well-Known Member

    Messages:
    192
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #6
    I think this should help you
    you can do this in wp settings
    wpadmin>settings>reading> set it to static page



     
    leo29, Mar 15, 2012 IP
  7. Irfi0009

    Irfi0009 Banned

    Messages:
    17,584
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    48
    #7
    i am ,not sure about the index.
     
    Irfi0009, Mar 15, 2012 IP
  8. pinus

    pinus Banned

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #8
    Allows a theme or plugin to register support of a certain theme feature. If called from a theme, it should be done in the theme's functions.php file to work. It can also be called from a plugin if attached to a hook.

    If attached to a hook, it must be after_setup_theme. The init hook may be too late for some features.
     
    pinus, Mar 16, 2012 IP
  9. nukem

    nukem Active Member

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #9
    take a look how the default themes are built up. Their basic php files for home, index, page, single, loop, and so on. After you studied them a while you understand their layout. And you are able to change it. If you want. If a change fits your theme better. Nothing is written in stone.
     
    nukem, Mar 16, 2012 IP
  10. martin_style

    martin_style Greenhorn

    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #10
    I think only main.php file, not sure main2.php file can work
     
    martin_style, Mar 18, 2012 IP
  11. Dreaming2design

    Dreaming2design Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    PS: Alot of our D2D themes do exactly what you need!
     
    Dreaming2design, Mar 24, 2012 IP
  12. usefulfitnesstips

    usefulfitnesstips Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    thanks for ur post. i think it is very informative for everyone. specially for me.
     
    usefulfitnesstips, Mar 26, 2012 IP