Announcement

Collapse
No announcement yet.

Categories Plus sign fix (mobile)

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

    Categories Plus sign fix (mobile)

    On my theme on mobile categories are a non standard + sign, I prefer the three horizontal lines type, looked hard in the sites folder for that image to change it but no lluck?
    https://www.harrisontelescopes.co.uk/

    Ed Harrison - Menmuir Scotland

    #2
    The "+" sign isn't an image. It's styled text. The generated code is (in e.g. Smart Mini Menu):
    Code:
    		<p class="mainNav">Categories<a id="mainNav" href="#menu" onclick="$(this).text($(this).text() == '-' ? '+' : '-');">+</a></p>
    So it may be possible to use two icons, plusicon.jpg and minusicon.jpg (keep them in your Site folder) with the following (untested) code:
    Code:
    		<p class="mainNav">
    			Categories
    			<a id="mainNav" href="#menu" onclick="$('#plusminusicon').attr('src', $('#plusminusicon').attr('src').indexOf('plusicon') == -1 ? 'plusicon.jpg' : 'minusicon.jpg');">
    				<img id="plusminusicon" src="plusicon.jpg" />
    			</a>
    		</p>
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Hi Ed,

      Just to let you know your site isn't displaying very well on my iPhone.
      Attached Files
      Regards

      Jason

      Titan Jewellery (Swift Design)
      Zirconium Rings
      Damascus Steel Rings

      Comment


        #4
        Yuk... OK...don't know why, I assumed the logo would be responsive.
        https://www.harrisontelescopes.co.uk/

        Ed Harrison - Menmuir Scotland

        Comment


          #5
          So 2014 was pushed as responsive! The main first visible part of any site is the header / logo, they go ahead with 2016 and leave us with a silly looking site - tut

          Webmaster tools is a comedy of errors, I would prefer to spend more time selling than talking to support, it seems never ending.

          Thank goodness for the kind help on here...
          https://www.harrisontelescopes.co.uk/

          Ed Harrison - Menmuir Scotland

          Comment


            #6
            Testing in developer on firefox it seems ok below 360 px and fine again above 600px - how odd
            https://www.harrisontelescopes.co.uk/

            Ed Harrison - Menmuir Scotland

            Comment


              #7
              It worked Norman, well the minus one does not but still looks miles better!
              https://www.harrisontelescopes.co.uk/

              Ed Harrison - Menmuir Scotland

              Comment


                #8
                Ed. I made a typo in my post #2. I've corrected it now. Try the updated post #2 code.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #9
                  Still no minus - could be me, I will check I named the image correctly...

                  The code refers to minus and plus images but only one src to the plus?
                  https://www.harrisontelescopes.co.uk/

                  Ed Harrison - Menmuir Scotland

                  Comment


                    #10
                    Hi, Ed. Apologies. Looks like I made a typo in my correction. Try post #2 now.

                    I'm fairly sure it'll work - I tested it on an SD demo site.
                    Norman - www.drillpine.biz
                    Edinburgh, U K / Bitez, Turkey

                    Comment


                      #11
                      Norman - brilliant, works perfectly, thank you.
                      https://www.harrisontelescopes.co.uk/

                      Ed Harrison - Menmuir Scotland

                      Comment


                        #12
                        Now - it works great but is there a way of "floating it left" as if I make it more than 40px wide it drifts off the right side?

                        I got rid of the CATEGORIES word to the left but it still wont budge...

                        thanks
                        https://www.harrisontelescopes.co.uk/

                        Ed Harrison - Menmuir Scotland

                        Comment


                          #13
                          Unfortunately, I'm not a CSS specialist so I hope someone else who knows will contribute.

                          You can see it via the link on Ed's signature above.
                          Norman - www.drillpine.biz
                          Edinburgh, U K / Bitez, Turkey

                          Comment


                            #14
                            Hi Ed,

                            This might work. Search for this in the Smart Repsonsive Stylesheet (line 785 on my system):

                            Code:
                            .miniNav > p > a {
                            			float:right !important;
                            			width:1em;
                            			margin:0 !important;
                            			font-size:2em;
                            			text-align:center;
                            		}
                            And change the second line to:

                            Code:
                            float:left !important;
                            Be prepared to change it back again - I'm no expert!

                            John
                            John Ennals
                            www.tortoys.co.uk

                            Comment


                              #15
                              Thank you John, I am now able to tweak it and that is where the awful colour code was that I was looking for to - much appreciated.
                              https://www.harrisontelescopes.co.uk/

                              Ed Harrison - Menmuir Scotland

                              Comment

                              Working...
                              X