Wordpress - Category help

Discussion in 'WordPress' started by Shoutgroup, Jun 25, 2008.

  1. #1
    Hey Guys,

    A few things I want to do to my blog www.webdesigndev.com and would love your help.

    - Category Adverts

    I want to show different adverts in posts depending on what catagory they are in. So in the category Dreamweaver, in the post I want to show affiliate links for Dreamweaver instead of just showing Photoshop links for all posts.

    - Category Browser Title

    If the catagory is called Dreamweaver then the title is Dreamweaver | Homepage Title.

    How do I change it to just show one title like "Dreamweaver Tutorials | Learn how to create websites in Dreamweaver"

    - Image Error

    The newsletter at the top of every post has a image background but it only appears once the rest of the site has loaded, why is this. View a post here: http://www.webdesigndev.com/photoshop/creating-sticky-tape-in-photoshop


    Thanks for your help!

    Michael Dunlop
     
    Shoutgroup, Jun 25, 2008 IP
  2. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You could use a simple IF statement where the ads appear, and then you need to know the ID of the category, and we then say if cat id = blah then show this advert else if etc...

    Do you have All in One SEO pack plugin installed? If not install it, you can change this easily and have the ability to mainpulate a lot of other things. Once installed you then go onto the tab for this plugin.


    Do you mean the Learn Web Design background, i'm not sure, probably because you are using tables and the background property. This can be done via CSS rather than inside the HTML document.

    Good Luck.
     
    wd_2k6, Jun 25, 2008 IP
  3. Erthy

    Erthy Peon

    Messages:
    254
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The image load problem may stem from Firefox's prioritization of image loads: backgrounds are less important -> load them last. I'm not sure IE does the same, it (perhaps less logically) should load images in the order they are coded in. You can easily preload the images with Javascript if this poses a problem however.

    As for category-specific ads, an IF statement would be perfect, and you could implement a category template with the statement included if you didn't want to change the ads on other pages.
     
    Erthy, Jun 25, 2008 IP