Announcement

Collapse
No announcement yet.

dumb Q probably..how do I dictate the colour of the price?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    dumb Q probably..how do I dictate the colour of the price?

    ok..lame title lol

    My "product price including tax" layout is currently
    Code:
    <actinic:block PHP='true'>priceformat("<actinic:variable name="SecondCurrencyFormat" />","<actinic:variable formatting="font(Size|14|Color|2f7790),bold" name="TaxInclusivePrice" />", "<actinic:variable formatting="font(Color|000000),underline,bold" name="TaxInclusivePriceAlt" />");</actinic:block>
    with the colour set using the "edit appearance" for the TaxInclusivePrice variable.
    I want to change this to use palette1 (which is changing soon...I'm trying to cut down what I need to change when I swap over) but I'm not sure where or how to put this in the layout

    bit of a noob question, I suppose..but if anyone can point me in the right direction, it'd be much appreciated

    ok..also I know y'all are going to tell me to use CSS...lol..if I knew how, I would. I don't have anything in my CSS for this colour...only in Design>Themes..so this is what I was using.

    I'm open to learning CSS...I just don't expect the forum to teach me..baby steps 'n' all that (been taking a lot of those today lol)

    Thanks
    Tracey

    #2
    HTML Code:
    <span style="color:<actinic:variable name="Palette2" />">[youyprice]</span>

    Comment


      #3
      but if I do that, Gabe...aren't I going to have to go back in and change it again when I change colour schemes over?
      I'm trying to link everything to the theme palette so I don't have to weed out every bit of hardcoded colour change.
      IYSWIM
      I've managed to change a lot of <font color="2f7790"> to <font color="Palette1"> (variable, obviously...typed for ease of reading!) to save me the trouble, but I can't work out how/where in this layout

      Tracey

      Comment


        #4
        hmm, i see what you mean.

        Comment


          #5
          not to worry...sussed it out
          put
          Code:
          <font color="<actinic:variable name="Palette1" />">
          tags around the "Product Price Including Tax" layout in the "Standard Tax Inclusive Price" layout

          Thanks
          Tracey

          Comment


            #6
            for heavens sake, dont use font.

            use a span.

            Comment


              #7
              Originally posted by gabrielcrowe
              for heavens sake, dont use font.

              use a span.
              *puts head in hands and sobs*

              I would....if I knew how
              Tracey

              Comment


                #8
                delete the f the o the n the t in both the opening and closing tag. replace them with s and p and a and n
                Bill
                www.egyptianwonders.co.uk
                Text directoryWorldwide Actinic(TM) shops
                BC Ness Solutions Support services, custom software
                Registered Microsoft™ Partner (ISV)
                VoIP UK: 0131 208 0605
                Located: Alexandria, EGYPT

                Comment


                  #9
                  well, you know what...as "Idiot's Guide" as that sounds...it doesn't help someone who doesn't know what they're doing

                  example... I currently have
                  <font color="<actinic:variable name="Palette1" />"><actinic:variable name="PreFormattedPrice" value="Product Price Including Tax" /></font>

                  how do I use "span" instead of "font" here? BEcause I know that just substituting one for the other isn't right

                  If you don't know what you're doing, you'd be surprised how easy it is to get lost and mess it up.

                  I do try...heck, I've had CSS and html webpages open all evening trying to achieve various things that I just can't get my head round.

                  Sometimes, it's just not as easy, to someone who knows nothing about it, as it seems
                  Tracey

                  Comment


                    #10
                    ok...more googling/reading/trial and error later... is this right?

                    <span style=color:"<actinic:variable name="Palette1" />"><actinic:variable name="PreFormattedPrice" value="Product Price Including Tax" /></span>

                    it does what I want it to do but I know that doesn't always mean it's right
                    Tracey

                    Comment


                      #11
                      Looks fine to me.
                      Peblaco

                      Comment


                        #12
                        thank you Louise

                        God, I seriously HATE not knowing what I'm doing!
                        Drives me nuts...which, I guess, is why I'm still working

                        sometimes, I really want a "proper" job....really
                        Tracey

                        Comment


                          #13
                          Gunna get an early night after today?
                          Peblaco

                          Comment


                            #14
                            Originally posted by peblaco
                            Gunna get an early night after today?
                            probably not!

                            I'm still breaking stuff
                            Tracey

                            Comment


                              #15
                              Originally posted by budgetbumps
                              <span style=color:"<actinic:variable name="Palette1" />"><actinic:variable name="PreFormattedPrice" value="Product Price Including Tax" /></span>
                              It's good practice to escape and close things properly bumpsy. Color is usually written like:

                              color: #000000;

                              i.e. add the semi-colon. I have seen some amazing messed up screens just for the lack of that semi-colon. You can get away with it when it is the last style defined, however i would always recommend to get into the habit of opening and closing things properly, it's imprinted in the brain then each time you work.

                              Code:
                              <span style=color:"<actinic:variable name="Palette1" />;"><actinic:variable name="PreFormattedPrice" value="Product Price Including Tax" /></span>

                              Comment

                              Working...
                              X