Announcement

Collapse
No announcement yet.

Remove section name

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

    Remove section name

    Hi all,

    Im trying to remove my section names but sd insists on a section name been input, I dont want this name showing at the top of the page. Is there any way of doing this without having to hack code ?

    I removed the top section sub list navigation, that was easy with just a tickbox to do it, but this appears not so easy ?

    I have searched the forums for this but no luck.

    Thanks
    Kind regards,

    Michael

    www.stageprint.co.uk

    #2
    Maybe I'm having one of my daft days but I can't say I understand what you're asking for.

    If you don't want something showing on the page then all you need to do is edit out (or comment out) the variable on the relevant layout.

    I somehow doubt it can be this easy. Can you maybe expand a bit on what you're trying to?
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #3
      Hi Mike,

      Sorry, best is to show a link:

      http://www.stageprint.co.uk/acatalog...inting-a4.html

      At the top of center section it says "Booklets and Programmes A4 Size", as it does on all sections throughout the site, I no longer want this showing as im trying to line everything up neatly with the sidebars, at present its a horizontal mess.

      I know how to tweak the positions of the sidebars afterwards.

      Thanks
      Kind regards,

      Michael

      www.stageprint.co.uk

      Comment


        #4
        If it was me I would leave the section name in so that you can still see the named sections when editing.

        If you don't want them to show on the website I would make a new variable at section level something like ShowSectionName, and then insert block ifs around the section name set to show on True. You can then decide on each section, and turn each section on and off as you choose.
        Regards

        Jason

        Titan Jewellery (Swift Design)
        Zirconium Rings
        Damascus Steel Rings

        Comment


          #5
          I would tend to leave the Section Page name in as it tells anybody viewing the page that they have reached the page they asked for.

          If you want to remove them just comment out the variable 'SectionName' (<actinic:variable formatting="h1" name="SectionName" />) from the Layout code for 'Section Page Body'.

          Clicking the section name text when viewing in the design tab will take you to the right layout.

          Mike
          -----------------------------------------

          First Tackle - Fly Fishing and Game Angling

          -----------------------------------------

          Comment


            #6
            Thanks,

            Ok, now I know how to remove it.
            First I will try shifting everything up and lining it all up horizontally, then leave the section name sitting on top and see what that looks like.
            Kind regards,

            Michael

            www.stageprint.co.uk

            Comment


              #7
              Edit: found it at line 708 .content-area, but im having to use negative px values again. Not bothered as long as it works. Thanks for the help

              Edit 2: not quite ! Lol, I will now search for the 'other' content areas.


              Well ive decided to get rid of them but now have a white space with the middle section needing to be pushed up.

              All I did was to delete 'SectionName' from section page body. Maybe theres still a <div> somewhere ?

              Im looking for this in layouts/web page outer layout/silverback stylesheet but cannot seem to find where to alter padding or margins for the center section. I can find it for the left and right side bars - move them up/down left or right but not for the center ?
              Kind regards,

              Michael

              www.stageprint.co.uk

              Comment


                #8
                Hello again,

                Well I really have tried to find the right code to adjust, ive tried adjusting many sections of code but cannot find what I need.

                I deleted Sectioname but theres now a white space above the center section on most pages of my site, the browsers are reading that something is supposed to be there, the deleted section name no doubt.

                I can only assume there is a <div> or margin, padding px values somewhere that need adjusting or deleting ?

                My home page and all section pages are effected by this:

                http://www.stageprint.co.uk/acatalog...inting-a4.html

                Any help would be great, im sure its just a few lines of code somewhere.
                Kind regards,

                Michael

                www.stageprint.co.uk

                Comment


                  #9
                  You have a couple of divs with 10px padding and a <br> sitting in there.

                  I find a good way to see what's happening is to use Google chrome, highlight something around the right area and then Right Click > Inspect Element. This will show what's affecting the layout and you can quickly move up and down the code to highlight which div is doing what.

                  Mike
                  -----------------------------------------

                  First Tackle - Fly Fishing and Game Angling

                  -----------------------------------------

                  Comment


                    #10
                    The break tag <br> at the top of the page usually comes from the login code. The div product-list which surrounds products has a padding of 10px from the CSS style sheet. And the div content-area which surrounds the central area shows a padding-top of 16px. You can try adjusting the padding for both, make a backup first.
                    Peblaco

                    Comment


                      #11
                      Chrome tells me that there's a padding:10px further down the css definitions that over-rides the padding-top: 16px.

                      .content-area { padding: 10px; }
                      Louise usually puts me right on these things so I'm not going to argue with her.

                      Mike
                      -----------------------------------------

                      First Tackle - Fly Fishing and Game Angling

                      -----------------------------------------

                      Comment


                        #12
                        Yes there is a second content-area definition. I took a quick look with Firebug which said 16px. But looking at the source there is wonky CSS with unclosed styles, or a style within another style:

                        .content-area { width: 930px; padding-top: 16px; ul.menu.menu-dropline { margin-top: 16px; } margin: 0px 0px 0px 0px; float: right; background: #fff; border: 0px solid #999; -moz-border-radius: 7px; -webkit-border-radius: 7px; border-radius: 7px; }
                        Peblaco

                        Comment


                          #13
                          Thankyou

                          Hi,

                          Thanks Mike and Louise,

                          Yes my code is wonky, dodgy and non compliant
                          I only have a very basic understanding of it and usually look it up at w3 schools . com, then if it does not work I start to hack it about until it does.

                          This thread will help me fix it.

                          No one has ever used accounts on this new site so im not too fussed about that, although I will test it to see if it all gets completely messed up again.

                          Interestingly I had my first ever "wind up, fake order" the other day, fake name, address and fake email. Might have to look for IP logging code for the checkout.

                          Thanks again
                          Kind regards,

                          Michael

                          www.stageprint.co.uk

                          Comment


                            #14
                            oh deary me, css is just plain awkward

                            Oh well,

                            I fixed the homepage, which was really really easy to do. Quick bit of top margin code and its done.

                            The rest of the site is just horrible to work with. I think I need to remove the space for account logins before experimenting any further, can anyone tell me how to remove the account login space ?

                            I don't like to keep asking for help here because the long term helpers must get really fed up with it, but im stuck on this and cannot get the center sections to line up horizontally with the sidebars.

                            I will never understand why the homepage can be lined up with some simple top margin code, but this same code cannot be applied to the rest of the site

                            Some of my weird code was used to try and make my adjustments cross browser compatible, im testing with ffox, ie, safari and chrome.

                            No rush, at least the site is functional, but im not going to admit how long ive spent on this because people would be horrified and fall off their chairs, then laugh a lot, then probably cringe and say "arrrrrrggggghhhhhhh"

                            I always do site snapshots before adjusting anything, I have more site snapshots than sd's entire customer base put together ! All dated, named and timed.
                            Kind regards,

                            Michael

                            www.stageprint.co.uk

                            Comment


                              #15
                              Various pages have different margins. There is a break tag on the end of: NowServingCurrentAccountMyAccountLogoutSimple<br > which adds an extra space.
                              Peblaco

                              Comment

                              Working...
                              X