How do you set a template?

Discussion in 'HTML & Website Design' started by yousellstuff1, Dec 15, 2010.

  1. #1
    I have a website that I update everyday which includes a new page added everyday. I had advertisements on my website but I am wondering how do I make a template because today I ran into my first issue. One of my advertisements stopped so I am left with going back through the 50 pages and taking it out. For now I am okay with this, but if it happens again I don't want to go through 300 pages.

    Is there a way to set a template so that I can just change that and then it will automatically change it on all pages?

    I am in the process of redesigning my website so I am already going to have to go through every page so this would be the perfect time to add this change as well.

    Thanks again and all help is appreciated
    Brandon
     
    yousellstuff1, Dec 15, 2010 IP
  2. pmp123

    pmp123 Member

    Messages:
    219
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #2
    if yu have dreamweaver you can setup your website in it and then find & replace the ad code in the entire site (if you have a local copy of your website).
     
    pmp123, Dec 15, 2010 IP
  3. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #3
    What you probably mean/need is a CMS, not DreamWeaver...

    With a simple text-editor like Notepad++ (and that's for free and professional coders) I can open 300 pages and change code sequences.
     
    CSM, Dec 16, 2010 IP
  4. pmp123

    pmp123 Member

    Messages:
    219
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #4
    No I actually meant DreamWeaver. Only if he is not using any CMS.
     
    pmp123, Dec 16, 2010 IP
  5. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #5
    CMS is the better way... DreamWeaver is for kids
     
    CSM, Dec 16, 2010 IP
  6. PsyHost

    PsyHost Well-Known Member

    Messages:
    641
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    110
    #6
    use php include for the ad. google wil help. or pm me and ill reply with help when I get home. :)
     
    PsyHost, Dec 16, 2010 IP
  7. yousellstuff1

    yousellstuff1 Active Member

    Messages:
    1,195
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    75
    #7
    I use dream weaver and the only reason I am not using a CMS is because I designed the site myself and cant convert the design to a CMS.

    and how exactly would I do it with php? What do I search on google?
     
    yousellstuff1, Dec 16, 2010 IP
  8. 9dlabs.NET

    9dlabs.NET Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    use CMS like wordpress, Joomla etc, it will help you a lot
     
    9dlabs.NET, Dec 17, 2010 IP
  9. webdev007

    webdev007 Active Member

    Messages:
    1,037
    Likes Received:
    13
    Best Answers:
    3
    Trophy Points:
    88
    #9
    Wrap your ad code in a method/function in php or other language you use, and rather than duplicating the code just call that method/function form multiple pages.
     
    webdev007, Dec 17, 2010 IP
  10. yousellstuff1

    yousellstuff1 Active Member

    Messages:
    1,195
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    75
    #10
    But the theme is custom made and I cant transfer it over to wordpress

    I am able to use this inside of my html website?
     
    yousellstuff1, Dec 17, 2010 IP
  11. avermat

    avermat Member

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #11
    Yes, you can use php inside of html pages by adding a few lines of code to your .htaccess file.
    A php include statement may be the quickest and easiest way to accomplish your template needs.

    I don't have much experience in this but hopefully that points you in the right direction.
     
    avermat, Dec 17, 2010 IP