Announcement

Collapse
No announcement yet.

Removing Subsections from Menu on left hand side???

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

    Removing Subsections from Menu on left hand side???

    Hi there,
    I've looked at the advanced user guide, i've tried everything, but to no avail!
    I'm helping a friend with the site:
    http://www.apothecaryedinburgh.co.uk
    I'm basically trying to remove the 'sub sections' from the menu on the left hand side, so that it just has the main sections e.g.:
    where it says 'Lighters' on the menu, I would like it just to say 'Lighters' rather than have the types underneath like turbo lighters.
    I've tried adding a true and false variable to the sections under design library, which does show up under the section details,but when I try to add the code to the blockif in code layout, i'm getting either 'invalid expression' or i'm adding it to the wrong bit of code
    I'm no expert, so if anyone can help, that would be very much appreciated!
    Thanks in advance,
    S

    #2
    Use in the blockif

    SectionLevel == 1


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment


      #3
      Originally posted by robotboi View Post
      I'm helping a friend with the site
      I hope that includes the green on black colour scheme


      Bikster
      SellerDeck Designs and Responsive Themes

      Comment


        #4
        Hi jont,
        thanks for getting back to me so quickly :-) I'm not very competent at the code part, is there any way that you could explain what I have to do, or possibly point me to another thread or example? (I have scoured the forum today, but i'm getting to the confused stage).

        Comment


          #5
          I should also mention that when I go to code layout, i'm not exactly sure i'm editing the right 'blockif'!
          The green and black is the guy who owns the shops colour scheme hehe. Whatever floats his boat I s'pose - i'm just really trying to help him out, I haven't done any web dev for a good year or so!

          Comment


            #6
            Ah.. OK .. you are using the Smart theme (which is a pig for SEO and best not using) .. anyhows you need to hack the javascript directly in that theme...

            Switch to the design tab
            navigate to the outer layout "works best with smart"
            towards the top you will see just above the <body> tag the javascript function Yahoosections(ar)

            find and delete the following block of code

            HTML Code:
            if (ar[i].pChild)
                    {
                    for (var j=1;j<=ar[i].pChild.length;j++)
                      {
                      if (ar[i].pChild[j].sURL != null)
                        {
                        strIDs += '<a href="' + ar[i].pChild[j].sURL + '"><span class="actxxsmall">' + ar[i].pChild[j].sName + '</span></a><br />';
                        }
                      }
                    }
            that is adding the child sections.

            Take a working backup first... tried on a default Smart v8 site but it is late


            Bikster
            SellerDeck Designs and Responsive Themes

            Comment


              #7
              Watch out for the number of closing braces }


              Bikster
              SellerDeck Designs and Responsive Themes

              Comment


                #8
                Thanks Jont :-)
                Just going to back it up for him now and then give it a shot! Fingers crossed !

                Comment


                  #9
                  You Sir, are a gentleman & a scholar! I wouldn't have had a clue how to hack the js, so thanks so much for taking the time to help me out with this!
                  Exactly how he wants it :-)
                  Thx again
                  S

                  Comment


                    #10
                    Glad you got it sorted ... the left hand navigation looks much better (still green though LOL)


                    Bikster
                    SellerDeck Designs and Responsive Themes

                    Comment


                      #11
                      Originally posted by robotboi View Post
                      Exactly how he wants it :-)
                      Whose he? Send him to specsavers.

                      Comment


                        #12
                        Didn't notice before - If he didn't need specs before he will after looking at the colour scheme.

                        Comment


                          #13
                          I keep expecting Rambo or Predator to jump out my screen.

                          Comment


                            #14
                            Here's a bit of 'light' relief.
                            Maybe we could have a competition.

                            BTW - don't take this personal Steve - it's only a bit of fun.
                            Attached Files

                            Comment


                              #15
                              Lol! I did warn him, but as you can probably tell by his site, he can be a bit of a character :-) I did offer to change it to some nicer hues and shades, but black and neon green it is!

                              Comment

                              Working...
                              X