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.

custom single.php

Discussion in 'WordPress' started by ysribharath, Aug 6, 2011.

  1. #1
    Hi ,

    My site is http://www.tollywoodzoom.com and i am using newsworld Deluxe theme

    I want to have a custom single.php for a particular category .. i have assigned using if and else statement ..but i am unable to change the look and layout

    please help me on this ...

    with regards

    sribharath
     
    ysribharath, Aug 6, 2011 IP
  2. 4under

    4under Greenhorn

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    Is the category page up and running on your site right now? If so, post the URL and what you'd like to do and I'll try and help you out with it.
     
    4under, Aug 6, 2011 IP
  3. ysribharath

    ysribharath Well-Known Member

    Messages:
    744
    Likes Received:
    10
    Best Answers:
    1
    Trophy Points:
    155
    #3
    hey yeah sorry was wrong in telling .. actually i need to make archive pages to look different ...

    for example gallery archive shld look diff than all other ones .. how do i do that
     
    ysribharath, Aug 6, 2011 IP
  4. 4under

    4under Greenhorn

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #4
    That shouldn't be too bad... You would have to alter the archive.php page template. (hopefully your theme has one)

    Essentially you would have to create some new CSS just for this page... The CSS would them change the look and layout.

    Can you send me the URL and maybe an example of what you're looking for? It's kinda hard to say how long this type of job would take without an example. :)
     
    4under, Aug 7, 2011 IP
  5. ysribharath

    ysribharath Well-Known Member

    Messages:
    744
    Likes Received:
    10
    Best Answers:
    1
    Trophy Points:
    155
    #5
    My site is http://www.tollywoodzoom.com

    actually i have done doing that ..i have made a custom archive as well

    But archive.php calls some thing like

    and querform.php has the below code

     
    ysribharath, Aug 7, 2011 IP
  6. ysribharath

    ysribharath Well-Known Member

    Messages:
    744
    Likes Received:
    10
    Best Answers:
    1
    Trophy Points:
    155
    #6
    i am not getting where to edit the theme :-(
     
    ysribharath, Aug 7, 2011 IP
  7. zhoom

    zhoom Peon

    Messages:
    388
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    zhoom, Aug 8, 2011 IP
  8. wordpressthemestock

    wordpressthemestock Member

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #8
    In single.php file , just edit :
    
    if(is_category(ID)){
    add your html code here
    }else{
    // some thing ...
    }
    
    Code (markup):
     
    wordpressthemestock, Aug 9, 2011 IP
  9. zhoom

    zhoom Peon

    Messages:
    388
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Yes... that's right... I mis-read the original post and thought he wanted to create category archive...
     
    zhoom, Aug 9, 2011 IP