Announcement

Collapse
No announcement yet.

Background Image on the Home Page Only

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

    Background Image on the Home Page Only

    Morning All

    I wonder if anyone out there can shed some light on a frustration of mine?

    I have got two sites on the go at the moment both using a background image imported from my Dreamweaver pages.

    The first site needs to have the background image on all pages - I have it on all the product pages and all of the brochure pages except the home page - where it most important.

    The other site has a background image on the home page only which shows in Actinic but not on upload to the web.

    Is this a 'home page' issue? Do I need to do something different for the homepage?

    I am sorry if this has been answered somewhere else, I have searched the forums and found a fair few threads on Background images but none that seem to fit my situation.

    Any ideas anyone?

    #2
    urls always help!
    Alan Johnson

    Quality Parrot Cages & Accessories by Parrotize UK
    Pet Accessories by Animal Instinct

    Comment


      #3
      Sorry

      http://www.test.modelmonsters.com/index.html

      Thanks

      Comment


        #4
        It's because your style for the body tag is referring to the image (backgroundlogo4.jpg) in the acatalog folder, and on your home page it is not using the correct url.

        I would guess changing the url for the image will break the image for the other pages tho.

        Try adding the style you have added to the body of the html doc to the Actinic stylesheet instead
        "If my answers frighten you then you should cease asking scary questions"

        Comment


          #5
          Hi - I remember having problems with this on one of my sites whereby I had to specify "acatalog/" before the file name for it display for the homepage online. This was not needed in the preview mode - me thinks a bug in actinic.

          The code I used was:

          <div id="pagelayout"<actinic:block if="%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e">
          <actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e" >
          style="background:url('aw09-home-background.jpg') no-repeat top right #fff;"
          </actinic:block>
          <actinic:block if="%3cactinic%3avariable%20name%3d%22IsNotPreviewMode%22%20%2f%3e" >
          style="background:url(acatalog/aw09-home-background.jpg) no-repeat top right #fff;"
          </actinic:block>
          </actinic:block>
          >
          I first checked if it was the home page.
          Then I checked if it was preview mode, if so display

          style="background:url('aw09-home-background.jpg') no-repeat top right #fff;"
          The I checked if was the page viewed online, if so display

          style="background:url(acatalog/aw09-home-background.jpg) no-repeat top right #fff;"
          Regards
          David

          Comment


            #6
            Thank you for your reply. I have put the code in the body text of home page but it is not appearing. I would value your thoughts.

            Cheers

            Comment


              #7
              I'd keep it much simpler, have your generic body tag declaration in the css as normal and then in the head area of the template have a blockif which checks whether it is the home page or not, if it is then override the body declaration with the new image. All pages will then use the generic body class apart from the home page because it will be overwritten it in the head area on that particular page.

              There is no need to add acatalog into any css declaration if it's done properly IMO. The only thing some people suffer is the images needing to be copied into the preview folders, but again i've never needed to do that either.

              Comment


                #8
                Originally posted by mcp View Post
                I have put the code in the body text of home page but it is not appearing.
                This is gibberish that makes no sense. What on earth is body text of home page? Body text of a home page at best would be within a fragment, if indeed that is what you mean. If it is, then you certainly don't do what you've said you've done in that place.

                Comment


                  #9
                  My apologies if I am not making sense I will try and make myself clearer.

                  I like the idea of simpler though I am not sure how to code a blockif to check if its the home page or not? Can you advise please.

                  Thank you

                  Comment


                    #10
                    David's code has that condition ready built. Add that to your site and study it, it's just a basic condition that already exists in actinic.

                    Comment


                      #11
                      Originally posted by mcp View Post
                      if its the home page or not? Can you advise please
                      Use IsBrochureHomePage == true as the condition


                      Bikster
                      SellerDeck Designs and Responsive Themes

                      Comment


                        #12
                        Ok, I feel like I have come a little further. I can now see the background image in actinic (as I can with the other pages) and I can see it in Preview mode. But still no joy on upload

                        Any ideas welcome.

                        Thanks

                        Comment


                          #13
                          Not sure what it was that has made it work but horay horah - it is now working

                          Thanks to all those that posted a reply today. Your help s always appreciated.

                          Cheers

                          Comment

                          Working...
                          X