Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2013
    Location
    Hong Kong
    Posts
    43
    Plugin Contributions
    0

    red flag Help! Menu and Main page content won't show in Mobile View

    Hi,

    There are several problems in my website's mobile view:

    1. Weird display problem
    Main page won't show in Mobile View when the mobile is in portrait mode, but it displays like normal in landscape mode. I tried to view the settings in Admin > Configuration > Layout settings but none of them seems to be related.

    I also tried to change the number of @media (max-width: ??px) in includes/templates/elegancer_pink/css/responsive_theme.css but it won't help too.

    Click image for larger version. 

Name:	BB_Mobile_Capture 1.jpg 
Views:	28 
Size:	12.9 KB 
ID:	19823
    Click image for larger version. 

Name:	BB_Mobile_Capture 2.jpg 
Views:	28 
Size:	24.2 KB 
ID:	19824

    2. Two of the Top Nav buttons' not working
    *a. Dropdown Menu won't show in Mobile View, can't even click on the button
    *b. Nothing happened when I click on the shopping cart button

    Click image for larger version. 

Name:	Screenshot 2021-11-11 at 6.30.26 PM.png 
Views:	28 
Size:	45.8 KB 
ID:	19825

    In the original purchased site's DEMO, you can see how the Dropdown Menu button & Shopping Cart button should work normally:

    Click image for larger version. 

Name:	Original DEMO site.jpg 
Views:	26 
Size:	36.0 KB 
ID:	19827

    ---------------------------------
    * Zen Cart Version: v151
    * PHP Version: 5.4.45
    * Site URL: http://www.brightenbooks.com.hk/

    * Original purchased Site's Demo: Go to
    http://demo.zen-cart-themes.com/ and pick 'Elegance Responsive' for Template Demo

  2. #2
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,542
    Plugin Contributions
    19

    Default Re: Help! Menu and Main page content won't show in Mobile View

    Could be related to the fact you're loading your css and javascript files twice. Check your includes/templates/elegancer_pink/common/html_header.php and see if it's different than the one provided in your template. Remove the second instance of the css/js loading and try again, maybe it'll help.

    However, with this being a VERY old version of Zen Cart (which you really should upgrade) and a commercial template which probably nobody here knows anything about and how it was built, you're not very likely to get much support here...

  3. #3
    Join Date
    Nov 2013
    Location
    Hong Kong
    Posts
    43
    Plugin Contributions
    0

    Default Re: Help! Menu and Main page content won't show in Mobile View

    Quote Originally Posted by balihr View Post
    Could be related to the fact you're loading your css and javascript files twice. Check your includes/templates/elegancer_pink/common/html_header.php and see if it's different than the one provided in your template. Remove the second instance of the css/js loading and try again, maybe it'll help.

    However, with this being a VERY old version of Zen Cart (which you really should upgrade) and a commercial template which probably nobody here knows anything about and how it was built, you're not very likely to get much support here...
    Thank you so much for your help! I tried to replace the html_header.php with the oldest copy I have. And it works!

    Problem 2 is now solved, would be really appreciated if any of you could raise ideas or solutions for problem 1 - the weird display problem. Thanks.

  4. #4
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,542
    Plugin Contributions
    19

    Default Re: Help! Menu and Main page content won't show in Mobile View

    So...
    includes/templates/elegancer_pink/css/responsive_theme.css on line 67 says
    Code:
    @media (max-width: 480px)
    .button_return_to_product_list, .carousel-box {
        display: none;
    }
    Since all other content on your home page is hidden and you're only showing carousels, and the css command says to hide the carousels on screen size smaller than 481px, there's nothing left to show. You can either remove .carousel-box from that line (but keep in mind it will affect all other pages on that screen size) OR you can create a new css file called index_home.css and add the following command:
    Code:
    @media (max-width: 480px)
    .carousel-box {
        display: block !important;
    }
    Either way, make sure you reload (CTRL+F5) after you make your changes.

  5. #5
    Join Date
    Nov 2013
    Location
    Hong Kong
    Posts
    43
    Plugin Contributions
    0

    Default Re: Help! Menu and Main page content won't show in Mobile View

    Thanks a lot for your life-saving hints! I replaced the code on line 67 with this:
    Code:
    .button_return_to_product_list {display: none;}
    .carousel-box {display: block !important;}
    And now the carousel boxes do appear on the homepage in Mobile view!

 

 

Similar Threads

  1. mobile view not sizing correctly and no slide out menu
    By ColtSAA in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Aug 2021, 10:17 PM
  2. v156 link menu in mobile view
    By ColtSAA in forum General Questions
    Replies: 1
    Last Post: 26 Jul 2019, 04:31 PM
  3. Gap on main page between menu bar and content
    By mw4kids in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Oct 2009, 03:11 PM
  4. Help Main Page Home Title and Content
    By gauthier613 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 31 Jul 2008, 06:39 PM
  5. Replies: 4
    Last Post: 4 Apr 2007, 05:09 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