Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26
  1. #11
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Stylesheet Colors Change Not Applied To Tablet

    Quote Originally Posted by NWCE View Post
    Thanks for your continued reply mc12345678 and sorry for the delay in response as I had to wait on my friend on the portrait and landscape question as I don't own an iPad.

    I am using v.,1.5.8, not the newest v.1.5.8.a on my site, and according to my friend, this problem of the footer display is both in landscape and portrait views.

    I hope that this info helps to further diagnose why the footer is displaying this way on tablets.

    Thanks again!
    So, what I'm seeing is that on many of the main pages of your site, the template is appearing correctly; however, on the product information page(s), this is where there appears to be an extra </div> tag or perhaps "misplaced" tag. For some reason (possibly due to some other page modification) the code section containing the following:
    Code:
    <div id="navSuppWrapper" style="max-width: 100%; margin: auto;"><div id="navSupp">
    <ul>
    <li><a href="Site URL">Home</a></li>
      <li><a href="Site URL/index.php?main_page=specials" rel="noreferrer noopener" target="_blank">Specials</a></li>
      <li><a href="Site URL/index.php?main_page=contact_us" rel="noreferrer noopener" target="_blank">Contact Us</a></li>
    </ul>
    </div>
    </div>
    is inside of the tag when it should be outside of it as seen everywhere else.

    And as I've tried to back through the code for the expected placement(s) of the tag and attempted to visually edit the inspection screen, I'm not seeing where the imbalance is located. I'm running on fumes at the moment, but it appears as I said that there is some modification to the product information template that is affecting the html layout.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #12
    Join Date
    Oct 2009
    Posts
    298
    Plugin Contributions
    0

    Default Re: Stylesheet Colors Change Not Applied To Tablet

    Hi mc12345678....thanks for taking a look at this!

    I am not sure why there would be a code modification such as this.....as I had added the specials and contact us to the footer via EZpages in the Admin. Is that not a correct way to do this?? I have tried turning off the Contact Us and Specials in the footer (and having them only in the Nav Bar) and this did not make any difference to the tablet display....it is still displaying the footer incorrectly as I had shown in my previous image.

    I have looked for this code in tpl pages in my custom folder (using Developers Toolkit) and cannot find this code. This code only appears in /common/tpl_footer.php Can you point me to where you see this???

    Thanks again

  3. #13
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,239
    Plugin Contributions
    1

    Default Re: Stylesheet Colors Change Not Applied To Tablet

    Quote Originally Posted by mc12345678 View Post
    ... but it appears as I said that there is some modification to the product information template that is affecting the html layout.
    Butting in... @mc12345678 is referring to includes/templates/mcsite23/templates/tpl_product_info_display.php, check for any changes you may have made to this file, especially check for missing <div> or </div> tags.

    If that is unsuccessful I would suggest working through the HTML errors on the product page - doing so might shine a light on the issue (aswell as being worthwhile from Google's point of view), enter the URL at this link and you'll see what I mean, https://validator.w3.org/nu/

    If the above take a while then in the meantime I believe adding 'clear:both' to /includes/templates/mcsite23/css/responsive_default.css, line #380 will work (check other pages to make sure this doesn't affect them)

    Code:
    div#headerWrapper,div#navSuppWrapper {width:100%;margin:auto;clear:both;}
    Last edited by simon1066; 7 Sep 2023 at 04:16 PM. Reason: removed site's URL
    Simon

  4. #14
    Join Date
    Oct 2009
    Posts
    298
    Plugin Contributions
    0

    Default Re: Stylesheet Colors Change Not Applied To Tablet

    Thanks for your suggestion on combing through the tpl_product_info_display.php I will do this and post back what I find out.

  5. #15
    Join Date
    Oct 2009
    Posts
    298
    Plugin Contributions
    0

    Default Re: Stylesheet Colors Change Not Applied To Tablet

    I have now gone through my tpl_product_info_display.php file and I have confirmed that there are no opening <div> tags without closing ones. The only modification to this file was the addition of the Advanced Cross Sell II code near the end of the file.

    I very well could be mistaken, but there is obviously a call somewhere to display the footer on the Product Info page (in tablet mode) and it is misplaced in terms of its location. When it displays on every other device it works well but on tablet it does not. Is there a file that specifically deals with tablet mode display?? Could it be in there??

    Thanks again for the help.

  6. #16
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,694
    Plugin Contributions
    9

    Default Re: Stylesheet Colors Change Not Applied To Tablet

    Quote Originally Posted by NWCE View Post
    I have now gone through my tpl_product_info_display.php file and I have confirmed that there are no opening <div> tags without closing ones. The only modification to this file was the addition of the Advanced Cross Sell II code near the end of the file.

    I very well could be mistaken, but there is obviously a call somewhere to display the footer on the Product Info page (in tablet mode) and it is misplaced in terms of its location. When it displays on every other device it works well but on tablet it does not. Is there a file that specifically deals with tablet mode display?? Could it be in there??

    Thanks again for the help.
    i think if you look at simon's post above, he recommends using an online validator.

    i would use the on-line validator to ensure that you have valid html code prior to continuing.

    looking at the code will not tell you if you have a stray div or if you have valid html.

    it's must easier using a validator tool.

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  7. #17
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Stylesheet Colors Change Not Applied To Tablet

    Thinking about it a little more, some of the changes in software versions had also been to attempt to remove html from language file defines. Depending on how the latest upgrade was performed it could be possible that some product_info language define desired to be kept also had html in it. Trust me I'm shooting spitballs here. I agree, using an html validator would make the inspection easier. Might suggest also inserting some inane html code at desired locations to be able to track the impact of review.

    Part of me also was wondering about the possibility of some sort of imbalanced php closure such that some tag or another is unfortunately outside of a grouping. Again, spitballing.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #18
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,239
    Plugin Contributions
    1

    Default Re: Stylesheet Colors Change Not Applied To Tablet

    If resolving the HTML errors doesn't help, it would be worth switching templates to confirm that the error is indeed within the mcsite23 template files.

    and there's this: https://docs.zen-cart.com/user/troub...d-odd-problems
    Last edited by simon1066; 8 Sep 2023 at 08:32 AM.
    Simon

  9. #19
    Join Date
    Oct 2009
    Posts
    298
    Plugin Contributions
    0

    Default Re: Stylesheet Colors Change Not Applied To Tablet

    Thank you both mc12345678 and simon1066 for your continued suggestions and replies!

    I will work on using the online validator and continue to comb through things as well. If you guys think of anything else to try or if I find the error I will post back.

    Thanks again!

  10. #20
    Join Date
    Oct 2009
    Posts
    298
    Plugin Contributions
    0

    Default Re: Stylesheet Colors Change Not Applied To Tablet

    I have used the online validator and there were no errors causing this display issue.

    The results show several:
    - Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.
    - Alt attribute on image is empty
    - The type attribute is unnecessary for JavaScript resources.

    Just wanted to update on the results of this.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v156 Stylesheet colors store in database: where?
    By RixStix in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Jun 2020, 06:59 PM
  2. Only dpapt colors in new stylesheet (without changing any default stylesheet)?
    By Moto in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 30 Dec 2016, 02:21 PM
  3. Adjusting colors from stylesheet
    By maci in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 27 Jul 2006, 09:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR