Forums

Different colours on different pages (2 posts)

  1. markovacs
    Member
    Posted 4 weeks ago #

    Hi,

    I am working on my blog and I used a template where I defined the colour of the different headers etc. This was generally made for the posts, but now I would like to add other pages that will contain static info.
    I would like to have the headers, links, etc with different colours on those pages.
    How is it possible to do it?

    Eg. If i copy paste it from somewhere, it is working but I do not think it is best for the coding. Do I have to manually (and if yes, how) add in front of every header a colour code?
    Or is there a better solution.
    Thank you for your help,

    Second question would be: If i add a picture, and want text next to it, but I want to have the next header starting below the picture I cant seem to do it, they slide next to eachother. If I take alignleft from the code the text will slide below the picture as well.
    So I would need something like blank lines/linebrakes etc I can manage easily.

    Please let me know if you need anything more form me.

    Site: http://fittmama.freevar.com

  2. esmi
    Member
    Posted 4 weeks ago #

    Q1: See http://quirm.net/2009/08/07/changing-headers-with-wordpress-body_class/ for a general approach that you should be able to use for your pages.

    Q2: If the first image is aligned to the left, try adding <br style="clear:left;" /> before the second image. If the first image is right aligned, use <br style="clear:right;" />

Reply

You must log in to post.

About this Topic